FeatureManager.CreateFeatureProviders Method (Type, Type)
Creates and returns a set of feature providers that exist for the specified type.
Namespace: Microsoft.Windows.Design.Features
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public Function CreateFeatureProviders ( _
featureProviderType As Type, _
type As Type _
) As IEnumerable(Of FeatureProvider)
public IEnumerable<FeatureProvider> CreateFeatureProviders(
Type featureProviderType,
Type type
)
public:
IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
Type^ featureProviderType,
Type^ type
)
member CreateFeatureProviders :
featureProviderType:Type *
type:Type -> IEnumerable<FeatureProvider>
public function CreateFeatureProviders(
featureProviderType : Type,
type : Type
) : IEnumerable<FeatureProvider>
Parameters
- featureProviderType
Type: System.Type
The type of feature provider to return.
- type
Type: System.Type
The type to create feature providers for.
Return Value
Type: System.Collections.Generic.IEnumerable<FeatureProvider>
An enumeration of feature providers. If no feature providers for featureProviderType or type are available, this method returns an empty enumeration.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | featureProviderType or type is nulla null reference (Nothing in Visual Basic). |
ArgumentException | featureProviderType does not derive from FeatureProvider. |
.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>