IdeaBlade.Core Assembly > IdeaBlade.Core.Composition Namespace > CompositionContext Class : WithTypeFilter Method |
'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)
public CompositionContext WithTypeFilter( Type type, Func<Export,bool> exportFilter )
You can use a type filter instead of a global filter if the metadata applies only to a specific type.
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