Quantcast
Channel: Managed Extensibility Framework
Viewing all articles
Browse latest Browse all 265

New Post: PartMetadataAttribut vs. ExportAttribute and ExportMetadataAttribute

$
0
0
I have created my own custom FilteredCatalog, like that shown on the MEF CodePlex site (https://mef.codeplex.com/wikipage?title=Filtering%20Catalogs&referringTitle=Guide) 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?

Thanks

Viewing all articles
Browse latest Browse all 265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>