Поделиться через


RequiresContextItemAttribute Constructor

Initializes a new instance of the RequiresContextItemAttribute class.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Sub New ( _
    contextItemType As Type _
)
public RequiresContextItemAttribute(
    Type contextItemType
)
public:
RequiresContextItemAttribute(
    Type^ contextItemType
)
new : 
        contextItemType:Type -> RequiresContextItemAttribute
public function RequiresContextItemAttribute(
    contextItemType : Type
)

Parameters

  • contextItemType
    Type: System.Type
    The type of context that is required.

Remarks

This attribute indicates that the class relies on the specified context, and the class is not instantiated until a value is set into the context.

Note

All contexts have default values, but the activation mechanism requires an outside entity to push a value into the context.

.NET Framework Security

See Also

Reference

RequiresContextItemAttribute Class

Microsoft.Windows.Design Namespace

RequiresServiceAttribute

UsesItemPolicyAttribute

FeatureProvider

FeatureConnector<TFeatureProviderType>

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility