FeatureManager.CreateFeatureProviders Method (Type, Type, Predicate<Type>)

Creates and returns a set of feature providers that exist for the specified type.

Namespace:  Microsoft.Windows.Design.Features
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Overridable Function CreateFeatureProviders ( _
    featureProviderType As Type, _
    type As Type, _
    match As Predicate(Of Type) _
) As IEnumerable(Of FeatureProvider)
public virtual IEnumerable<FeatureProvider> CreateFeatureProviders(
    Type featureProviderType,
    Type type,
    Predicate<Type> match
)
public:
virtual IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
    Type^ featureProviderType, 
    Type^ type, 
    Predicate<Type^>^ match
)
abstract CreateFeatureProviders : 
        featureProviderType:Type * 
        type:Type * 
        match:Predicate<Type> -> IEnumerable<FeatureProvider> 
override CreateFeatureProviders : 
        featureProviderType:Type * 
        type:Type * 
        match:Predicate<Type> -> IEnumerable<FeatureProvider> 
public function CreateFeatureProviders(
    featureProviderType : Type, 
    type : Type, 
    match : Predicate<Type>
) : IEnumerable<FeatureProvider>

Parameters

  • featureProviderType
    Type: System.Type
    The type of feature provider to return.
  • type
    Type: System.Type
    The type to create feature providers for.
  • match
    Type: System.Predicate<Type>
    A predicate to use when creating feature providers. If the predicate returns true, the feature provider will be included in the enumeration.

Return Value

Type: System.Collections.Generic.IEnumerable<FeatureProvider>
An enumeration of feature providers. If no feature providers for featureProviderType, type, or match are available, this method returns an empty enumeration.

Exceptions

Exception Condition
ArgumentNullException

featureProviderType, type or match is nulla null reference (Nothing in Visual Basic).

ArgumentException

featureProviderType does not derive from FeatureProvider.

.NET Framework Security

See Also

Reference

FeatureManager Class

CreateFeatureProviders Overload

Microsoft.Windows.Design.Features Namespace

FeatureProvider

FeatureConnector<TFeatureProviderType>

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility