FeatureConnector<TFeatureProviderType>.CreateFeatureProviders<TSubtype> Method (Type)

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

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

Syntax

'Declaration
Protected Function CreateFeatureProviders(Of TSubtype As ) ( _
    type As Type _
) As IEnumerable(Of TSubtype)
protected IEnumerable<TSubtype> CreateFeatureProviders<TSubtype>(
    Type type
)
where TSubtype : 
protected:
generic<typename TSubtype>
where TSubtype : 
IEnumerable<TSubtype>^ CreateFeatureProviders(
    Type^ type
)
member CreateFeatureProviders : 
        type:Type -> IEnumerable<'TSubtype>  when 'TSubtype : 
JScript does not support generic types or methods.

Type Parameters

  • TSubtype
    The subtype of the feature provider type.

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<TSubtype>
An enumeration of feature providers, filtered by the subtype.

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.

You may specify a subtype to restrict the returned feature providers to particular subtypes of FeatureProviderType.

.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