RolePlayerChangedEventManager.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add(DomainRoleInfo, Delegate) |
Add an event handler that is called whenever any ModelElement playing a particular role in any ElementLink is changed |
Add(DomainRoleInfo, Guid, Delegate) |
Add an event handler that is called whenever the ModelElement playing a particular role in a particular ElementLink is changed |
Add(DomainRoleInfo, Delegate)
Add an event handler that is called whenever any ModelElement playing a particular role in any ElementLink is changed
public:
void Add(Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ domainRole, Delegate ^ handler);
public void Add (Microsoft.VisualStudio.Modeling.DomainRoleInfo domainRole, Delegate handler);
override this.Add : Microsoft.VisualStudio.Modeling.DomainRoleInfo * Delegate -> unit
Public Sub Add (domainRole As DomainRoleInfo, handler As Delegate)
Parameters
- domainRole
- DomainRoleInfo
The domain role to observe
- handler
- Delegate
The handler for the notifications
Applies to
Add(DomainRoleInfo, Guid, Delegate)
Add an event handler that is called whenever the ModelElement playing a particular role in a particular ElementLink is changed
public:
void Add(Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ domainRole, Guid elementLinkId, Delegate ^ handler);
public void Add (Microsoft.VisualStudio.Modeling.DomainRoleInfo domainRole, Guid elementLinkId, Delegate handler);
override this.Add : Microsoft.VisualStudio.Modeling.DomainRoleInfo * Guid * Delegate -> unit
Public Sub Add (domainRole As DomainRoleInfo, elementLinkId As Guid, handler As Delegate)
Parameters
- domainRole
- DomainRoleInfo
The domain role to observe
- elementLinkId
- Guid
The Id of the ElementLink to observe
- handler
- Delegate
The handler for the notifications