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
- source
Type: Microsoft.Windows.Design.Features.FeatureManager
The feature manager to use.
- featureProviderType
Type: System.Type
The type of feature provider to create.
- item
Type: Microsoft.Windows.Design.Model.ModelItem
The model item to create the feature providers for.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.