FeatureManager.CreateFeatureProviders Method (Type, Predicate<Type>)
Creates and returns a set of feature providers for the specified type.
Namespace: Microsoft.Windows.Design.Features
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public Overridable Function CreateFeatureProviders ( _
featureProviderType As Type, _
match As Predicate(Of Type) _
) As IEnumerable(Of FeatureProvider)
public virtual IEnumerable<FeatureProvider> CreateFeatureProviders(
Type featureProviderType,
Predicate<Type> match
)
public:
virtual IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
Type^ featureProviderType,
Predicate<Type^>^ match
)
abstract CreateFeatureProviders :
featureProviderType:Type *
match:Predicate<Type> -> IEnumerable<FeatureProvider>
override CreateFeatureProviders :
featureProviderType:Type *
match:Predicate<Type> -> IEnumerable<FeatureProvider>
public function CreateFeatureProviders(
featureProviderType : Type,
match : Predicate<Type>
) : IEnumerable<FeatureProvider>
Parameters
- featureProviderType
Type: System.Type
The type of feature provider to return.
- match
Type: System.Predicate<Type>
A predicate to use when creating feature providers. If the predicate returns true, the feature provider will be included in the enumeration.
Return Value
Type: System.Collections.Generic.IEnumerable<FeatureProvider>
An enumeration of feature providers. If no feature providers for featureProviderType or match are available, this method returns an empty enumeration.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | featureProviderType or match is nulla null reference (Nothing in Visual Basic). |
ArgumentException | featureProviderType does not derive from FeatureProvider. |
Remarks
This method returns a single instance of all feature providers that derive from featureProviderType.
.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.
See Also
Reference
CreateFeatureProviders Overload
Microsoft.Windows.Design.Features Namespace
FeatureConnector<TFeatureProviderType>