Поделиться через


FeatureConnector<TFeatureProviderType>.CreateFeatureProviders Method (Type)

Creates a new list of feature providers associated with the feature connector, based on the provided type.

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

Syntax

'Declaration
Protected Function CreateFeatureProviders ( _
    type As Type _
) As IEnumerable(Of TFeatureProviderType)
protected IEnumerable<TFeatureProviderType> CreateFeatureProviders(
    Type type
)
protected:
IEnumerable<TFeatureProviderType>^ CreateFeatureProviders(
    Type^ type
)
member CreateFeatureProviders : 
        type:Type -> IEnumerable<'TFeatureProviderType> 
protected function CreateFeatureProviders(
    type : Type
) : IEnumerable<TFeatureProviderType>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<TFeatureProviderType>
An enumeration of feature providers.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

The feature providers are discovered through reflection of the attributes on type.

.NET Framework Security

See Also

Reference

FeatureConnector<TFeatureProviderType> Class

CreateFeatureProviders Overload

Microsoft.Windows.Design.Features Namespace

FeatureProvider

FeatureConnectorAttribute

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility