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
- 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
RequiresContextItemAttribute Class
Microsoft.Windows.Design Namespace
FeatureConnector<TFeatureProviderType>