Share via


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

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

See Also

Reference

UsesItemPolicyAttribute Class

Microsoft.Windows.Design.Policies Namespace

ItemPolicy

SelectionPolicy

FeatureProvider

FeatureConnectorAttribute

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility