UsesItemPolicyAttribute.CreateSubscription Method
Returns a RequirementSubscription object that can be used to be notified when this policy is available.
Namespace: Microsoft.Windows.Design.Policies
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
'Declaration
Public Overrides Function CreateSubscription ( _
context As EditingContext _
) As RequirementSubscription
public override RequirementSubscription CreateSubscription(
EditingContext context
)
public:
virtual RequirementSubscription^ CreateSubscription(
EditingContext^ context
) override
abstract CreateSubscription :
context:EditingContext -> RequirementSubscription
override CreateSubscription :
context:EditingContext -> RequirementSubscription
public override function CreateSubscription(
context : EditingContext
) : RequirementSubscription
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context to check.
Type: Microsoft.Windows.Design.RequirementSubscription
A new RequirementSubscription object.
Exception | Condition |
---|---|
ArgumentNullException | context is nulla null reference (Nothing in Visual Basic). |
- 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.
Microsoft.Windows.Design.Policies Namespace