Partager via


RolePlayerOrderChangedEventManager.Add Method

Definition

Overloads

Add(DomainRoleInfo, Delegate)

Add an event handler that is notified whenever the order of Elements playing a particular domain role has changed for any source ModelElement changes

Add(DomainRoleInfo, Guid, Delegate)

Add an event handler that is notified whenever the order of Elements playing a particular role in relationships with a particular source ModelElement changes

Add(DomainRoleInfo, Delegate)

Add an event handler that is notified whenever the order of Elements playing a particular domain role has changed for any source ModelElement changes

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

Parameters

counterpartDomainRole
DomainRoleInfo

The role played by the elements whose order is changed

handler
Delegate

The delegate that is to be called

Remarks

For example, add an event handler that is notified whenever the order of child columns is changed for any database table. In this example, the "counterpart domain role" is the child-column role.

Applies to

Add(DomainRoleInfo, Guid, Delegate)

Add an event handler that is notified whenever the order of Elements playing a particular role in relationships with a particular source ModelElement changes

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

Parameters

counterpartDomainRole
DomainRoleInfo

The role played by the elements whose order is changed

sourceElementId
Guid

The Id of the (parent) ModelElement ordering the (child) counterparts

handler
Delegate

The handler to add

Remarks

For example, add an event handler that is called whenever the order of the columns of the Authors table is changed. In this example, the "counterpart domain role" is the child-column role, while the "source ModelElement" is the Authors table.

Applies to