Share via


FeatureExtensions.CreateFeatureProviders Method (FeatureManager, Type, ModelItem)

Creates feature providers of the specified type and model item.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateFeatureProviders ( _
    source As FeatureManager, _
    featureProviderType As Type, _
    item As ModelItem _
) As IEnumerable(Of FeatureProvider)
public static IEnumerable<FeatureProvider> CreateFeatureProviders(
    this FeatureManager source,
    Type featureProviderType,
    ModelItem item
)
[ExtensionAttribute]
public:
static IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
    FeatureManager^ source, 
    Type^ featureProviderType, 
    ModelItem^ item
)
static member CreateFeatureProviders : 
        source:FeatureManager * 
        featureProviderType:Type * 
        item:ModelItem -> IEnumerable<FeatureProvider> 
public static function CreateFeatureProviders(
    source : FeatureManager, 
    featureProviderType : Type, 
    item : ModelItem
) : IEnumerable<FeatureProvider>

Parameters

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

Return Value

Type: System.Collections.Generic.IEnumerable<FeatureProvider>
An enumeration of created providers.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FeatureManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

Exception Condition
ArgumentNullException

source, featureProviderType or item is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

FeatureExtensions Class

CreateFeatureProviders Overload

Microsoft.Windows.Design.Model Namespace