RolePlayerOrderChangedEventManager.Add Method (DomainRoleInfo, Guid, Delegate)

Adds an event handler that is notified whenever the order of elements that play a particular role in relationships with a particular source element changes.

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, _
    sourceElementId As Guid, _
    handler As Delegate _
)
public void Add(
    DomainRoleInfo counterpartDomainRole,
    Guid sourceElementId,
    Delegate handler
)
public:
void Add(
    DomainRoleInfo^ counterpartDomainRole, 
    Guid sourceElementId, 
    Delegate^ handler
)
member Add : 
        counterpartDomainRole:DomainRoleInfo * 
        sourceElementId:Guid * 
        handler:Delegate -> unit 
public function Add(
    counterpartDomainRole : DomainRoleInfo, 
    sourceElementId : Guid, 
    handler : Delegate
)

Parameters

  • sourceElementId
    Type: System.Guid
    The ID of the parent element ordering the child counterparts.

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.

.NET Framework Security

See Also

Reference

RolePlayerOrderChangedEventManager Class

Add Overload

Microsoft.VisualStudio.Modeling Namespace