Share via


FeatureManager.CreateFeatureProviders Method (Type)

Creates and returns a set of feature providers 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 _
) As IEnumerable(Of FeatureProvider)
public IEnumerable<FeatureProvider> CreateFeatureProviders(
    Type featureProviderType
)
public:
IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
    Type^ featureProviderType
)
member CreateFeatureProviders : 
        featureProviderType:Type -> IEnumerable<FeatureProvider> 
public function CreateFeatureProviders(
    featureProviderType : Type
) : IEnumerable<FeatureProvider>

Parameters

  • featureProviderType
    Type: System.Type
    The type of feature provider to return.

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

featureProviderType is nulla null reference (Nothing in Visual Basic).

ArgumentException

featureProviderType does not derive from FeatureProvider.

Remarks

This method returns a single instance of all feature providers that derive from featureProviderType.

.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