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 | |
---|---|---|
RequirementSubscription | Initializes a new instance of the RequirementSubscription class. |
Top
Properties
Name | Description | |
---|---|---|
Requirement | Gets the requirement attribute that is attached to this subscription. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnRequirementChanged | Raises the RequirementChanged event. | |
Subscribe | Subscribes to context events. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unsubscribe | Removes subscriptions to context events. |
Top
Events
Name | Description | |
---|---|---|
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