Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the FeatureAttribute class.
Namespace: Microsoft.Windows.Design.Features
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public Sub New ( _
featureProviderType As Type _
)
public FeatureAttribute(
Type featureProviderType
)
public:
FeatureAttribute(
Type^ featureProviderType
)
new :
featureProviderType:Type -> FeatureAttribute
public function FeatureAttribute(
featureProviderType : Type
)
Parameters
- featureProviderType
Type: System.Type
The type of feature provider this attribute describes.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | featureProviderType is nulla null reference (Nothing in Visual Basic). |
| ArgumentException | The feature provider is not assignable from featureProviderType. |
Remarks
FeatureAttribute stores the type of FeatureProvider for a feature manager to instantiate. The featureProviderType parameter must specify a class that inherits 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
Microsoft.Windows.Design.Features Namespace