Share via


RequirementAttribute.CreateSubscription Method

Returns a RequirementSubscription object that can be used to be notified when the requirement contained in this attribute has changed.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public MustOverride Function CreateSubscription ( _
    context As EditingContext _
) As RequirementSubscription
public abstract RequirementSubscription CreateSubscription(
    EditingContext context
)
public:
virtual RequirementSubscription^ CreateSubscription(
    EditingContext^ context
) abstract
abstract CreateSubscription : 
        context:EditingContext -> RequirementSubscription 
public abstract 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).

Remarks

The caller can handle this event and call the MeetsRequirement method to determine whether the requirement is met after the change.

.NET Framework Security

See Also

Reference

RequirementAttribute Class

Microsoft.Windows.Design Namespace

RequiresContextItemAttribute

RequiresServiceAttribute

UsesItemPolicyAttribute

Other Resources

Understanding WPF Designer Extensibility