Visual Basic (Declaration) | |
---|---|
Public Shared Function BuildExportFilter( _ ByVal metadataKey As String, _ ByVal keyValue As Object _ ) As Func(Of Export,Boolean) |
Visual Basic (Usage) | ![]() |
---|---|
Dim metadataKey As String Dim keyValue As Object Dim value As Func(Of Export,Boolean) value = CompositionContext.BuildExportFilter(metadataKey, keyValue) |
C# | |
---|---|
public static Func<Export,bool> BuildExportFilter( string metadataKey, object keyValue ) |
C++/CLI | |
---|---|
public: static Func<Export^,bool>^ BuildExportFilter( String^ metadataKey, Object^ keyValue ) |
Parameters
- metadataKey
- keyValue
If you've decorated your classes with the ExportMetadata attribute to provide metadata about the exported type you can filter for these types in your CompositionContext by providing an export filter. Use WithFilter or WithTypeFilter to add the filter to the context.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family