FeatureAttribute Constructor

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

See Also

Reference

FeatureAttribute Class

Microsoft.Windows.Design.Features Namespace

FeatureProvider

Other Resources

Feature Providers and Feature Connectors