DevForce Help Reference
WithTypeFilter Method


A filter for exported metadata
Creates a new CompositionContext from the current context with a metadata filter for the type specified.
Syntax
'Declaration
 
Public Function WithTypeFilter( _
   ByVal type As Type, _
   ByVal exportFilter As Func(Of Export,Boolean) _
) As CompositionContext
'Usage
 
Dim instance As CompositionContext
Dim type As Type
Dim exportFilter As Func(Of Export,Boolean)
Dim value As CompositionContext
 
value = instance.WithTypeFilter(type, exportFilter)

Parameters

type
exportFilter
A filter for exported metadata
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 BuildExportFilter to create the filter.

You can use a type filter instead of a global filter if the metadata applies only to a specific type.

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