ElementPropertyChangedEventManager.Add Method

Definition

Overloads

Add(DomainPropertyInfo, Delegate)

Add an event handler that is notified whenever the value of any instance of a particular domain propertyis changed

Add(DomainClassInfo, DomainPropertyInfo, Delegate)

Add an event handler that is notified whenever the value of a particular property on an instance of a particular domain class (or its subclasses) is changed

Add(DomainPropertyInfo, Guid, Delegate)

Add an event handler that is notified whenever the value of a particular property of a particular ModelElement is changed

Add(DomainPropertyInfo, Delegate)

Add an event handler that is notified whenever the value of any instance of a particular domain propertyis changed

public:
 void Add(Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ domainProperty, Delegate ^ handler);
public void Add (Microsoft.VisualStudio.Modeling.DomainPropertyInfo domainProperty, Delegate handler);
override this.Add : Microsoft.VisualStudio.Modeling.DomainPropertyInfo * Delegate -> unit
Public Sub Add (domainProperty As DomainPropertyInfo, handler As Delegate)

Parameters

domainProperty
DomainPropertyInfo

The domain propertyto observe

handler
Delegate

The handler that is to be added

Applies to

Add(DomainClassInfo, DomainPropertyInfo, Delegate)

Add an event handler that is notified whenever the value of a particular property on an instance of a particular domain class (or its subclasses) is changed

public:
 void Add(Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ domainProperty, Delegate ^ handler);
public void Add (Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, Microsoft.VisualStudio.Modeling.DomainPropertyInfo domainProperty, Delegate handler);
override this.Add : Microsoft.VisualStudio.Modeling.DomainClassInfo * Microsoft.VisualStudio.Modeling.DomainPropertyInfo * Delegate -> unit
Public Sub Add (domainClass As DomainClassInfo, domainProperty As DomainPropertyInfo, handler As Delegate)

Parameters

domainClass
DomainClassInfo

The domain class to observe

domainProperty
DomainPropertyInfo

The domain class to observe

handler
Delegate

The handler that is to be added

Applies to

Add(DomainPropertyInfo, Guid, Delegate)

Add an event handler that is notified whenever the value of a particular property of a particular ModelElement is changed

public:
 void Add(Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ domainProperty, Guid elementId, Delegate ^ handler);
public void Add (Microsoft.VisualStudio.Modeling.DomainPropertyInfo domainProperty, Guid elementId, Delegate handler);
override this.Add : Microsoft.VisualStudio.Modeling.DomainPropertyInfo * Guid * Delegate -> unit
Public Sub Add (domainProperty As DomainPropertyInfo, elementId As Guid, handler As Delegate)

Parameters

domainProperty
DomainPropertyInfo

The property to observe

elementId
Guid

The Id of the ModelElement to observe

handler
Delegate

The handler that is to be added

Applies to