RolePlayerOrderChangedEventManager.Add Method (DomainRoleInfo, Delegate)
Adds an event handler that is notified whenever the order of elements that play a particular domain role changes for any source element.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣言
Public Sub Add ( _
counterpartDomainRole As DomainRoleInfo, _
handler As Delegate _
)
public void Add(
DomainRoleInfo counterpartDomainRole,
Delegate handler
)
public:
void Add(
DomainRoleInfo^ counterpartDomainRole,
Delegate^ handler
)
member Add :
counterpartDomainRole:DomainRoleInfo *
handler:Delegate -> unit
public function Add(
counterpartDomainRole : DomainRoleInfo,
handler : Delegate
)
Parameters
- counterpartDomainRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
The role played by the elements whose order is changed.
- handler
Type: System.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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.