RequirementSubscription Class

Provides a notification when changes in the editing context may have satisfied the attached requirement.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.RequirementSubscription

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

Syntax

'Declaration
Public MustInherit Class RequirementSubscription
public abstract class RequirementSubscription
public ref class RequirementSubscription abstract
[<AbstractClass>]
type RequirementSubscription =  class end
public abstract class RequirementSubscription

The RequirementSubscription type exposes the following members.

Constructors

  Name Description
Protected method RequirementSubscription Initializes a new instance of the RequirementSubscription class.

Top

Properties

  Name Description
Public property Requirement Gets the requirement attribute that is attached to this subscription.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnRequirementChanged Raises the RequirementChanged event.
Protected method Subscribe Subscribes to context events.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method Unsubscribe Removes subscriptions to context events.

Top

Events

  Name Description
Public event RequirementChanged Occurs when the requirement has changed.

Top

Remarks

Create a RequirementSubscription object by calling the CreateSubscription method on a class derived from RequirementAttribute.

A RequirementSubscription raises an event when data in the editing context has changed and therefore, the requirement may have been met.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Design Namespace

RequirementAttribute

Other Resources

Understanding WPF Designer Extensibility