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 (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Sub Add ( _
    counterpartDomainRole As DomainRoleInfo, _
    sourceElementId As Guid, _
    handler As Delegate _
)
'使用
Dim instance As RolePlayerOrderChangedEventManager
Dim counterpartDomainRole As DomainRoleInfo
Dim sourceElementId As Guid
Dim handler As Delegate

instance.Add(counterpartDomainRole, sourceElementId, _
    handler)
public void Add(
    DomainRoleInfo counterpartDomainRole,
    Guid sourceElementId,
    Delegate handler
)
public:
void Add(
    DomainRoleInfo^ counterpartDomainRole, 
    Guid sourceElementId, 
    Delegate^ handler
)
public function Add(
    counterpartDomainRole : DomainRoleInfo, 
    sourceElementId : Guid, 
    handler : Delegate
)

Parameters

  • sourceElementId
    Type: System.Guid

    The ID of the parent element ordering the child counterparts.

Permissions

See Also

Reference

RolePlayerOrderChangedEventManager Class

RolePlayerOrderChangedEventManager Members

Add Overload

Microsoft.VisualStudio.Modeling Namespace