DevForce Help Reference
BuildExportFilter Method


Adds a filter for the specified ExportMetadata key and value.
Syntax
'Declaration
 
Public Shared Function BuildExportFilter( _
   ByVal metadataKey As String, _
   ByVal keyValue As Object _
) As Func(Of Export,Boolean)
'Usage
 
Dim metadataKey As String
Dim keyValue As Object
Dim value As Func(Of Export,Boolean)
 
value = CompositionContext.BuildExportFilter(metadataKey, keyValue)
public static Func<Export,bool> BuildExportFilter( 
   string metadataKey,
   object keyValue
)

Parameters

metadataKey
keyValue
Remarks
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CompositionContext Class
CompositionContext Members

Send Feedback