This project has moved and is read-only. For the latest updates, please go here.

PartMetadataAttribut vs. ExportAttribute and ExportMetadataAttribute

Aug 30, 2013 at 6:28 PM
I have created my own custom FilteredCatalog, like that shown on the MEF CodePlex site ( using the PartMetadataAttribute like so:

[PartMetadata("KeyName", "KeyValue", Export]

In the documentation for the PartMetadataAttribute it doesn't show the 'Export' or anything else for that matter, other than the Key and Value.

My question is this: Does the use of the 'Export' in the PartMetadataAttribute accomplish the same thing as using an explicit [ExportAttribute]? Can or should I use both?