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)
Syntax
'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
Parameters
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context to check.
Return Value
Type: Microsoft.Windows.Design.RequirementSubscription
A new RequirementSubscription object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | context is nulla null reference (Nothing in Visual Basic). |
.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