IdeaBlade DevForce 2010 Help Reference
BuildExportFilter Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.Composition Namespace > CompositionContext Class : BuildExportFilter Method



metadataKey
keyValue
Adds a filter for the specified ExportMetadata key and value.

Syntax

Visual Basic (Declaration) 
Public Shared Function BuildExportFilter( _
   ByVal metadataKey As String, _
   ByVal keyValue As Object _
) As Func(Of Export,Boolean)
Visual Basic (Usage)Copy Code
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

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 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

See Also

© 2013 All Rights Reserved.