FeatureManager.CreateFeatureProviders Method (Type, 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 Function CreateFeatureProviders ( _
    featureProviderType As Type, _
    type As Type _
) As IEnumerable(Of FeatureProvider)
public IEnumerable<FeatureProvider> CreateFeatureProviders(
    Type featureProviderType,
    Type type
)
public:
IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
    Type^ featureProviderType, 
    Type^ type
)
member CreateFeatureProviders : 
        featureProviderType:Type * 
        type:Type -> IEnumerable<FeatureProvider> 
public function CreateFeatureProviders(
    featureProviderType : Type, 
    type : 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.

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

featureProviderType or type 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