ItemPolicy.Context Property
Gets the editing context for the designer.
Namespace: Microsoft.Windows.Design.Policies
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected ReadOnly Property Context As EditingContext
Get
protected EditingContext Context { get; }
protected:
property EditingContext^ Context {
EditingContext^ get ();
}
member Context : EditingContext
function get Context () : EditingContext
Property Value
Type: Microsoft.Windows.Design.EditingContext
The EditingContext for the designer.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The policy has not been activated. |
Remarks
The Context property raises an exception if you try to access it when the policy is not activated.
.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.Policies Namespace