Compartilhar via


RolePlayerChangedEventManager.Add Method

Definition

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

Applies to