FeatureExtensions.CreateFeatureProviders Method (FeatureManager, Type, ModelItem, Predicate<Type>)
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, _
match As Predicate(Of Type) _
) As IEnumerable(Of FeatureProvider)
public static IEnumerable<FeatureProvider> CreateFeatureProviders(
this FeatureManager source,
Type featureProviderType,
ModelItem item,
Predicate<Type> match
)
[ExtensionAttribute]
public:
static IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
FeatureManager^ source,
Type^ featureProviderType,
ModelItem^ item,
Predicate<Type^>^ match
)
static member CreateFeatureProviders :
source:FeatureManager *
featureProviderType:Type *
item:ModelItem *
match:Predicate<Type> -> IEnumerable<FeatureProvider>
public static function CreateFeatureProviders(
source : FeatureManager,
featureProviderType : Type,
item : ModelItem,
match : Predicate<Type>
) : 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.
- match
Type: System.Predicate<Type>
A predicate to use when creating feature providers. If the predicate returns true, the feature provider is included in the enumeration.
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, item, or match 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.