Delen via


RolePlayerChangedEventManager.Add Method (DomainRoleInfo, Guid, Delegate)

Adds an event handler that is called whenever the element that plays a particular role in a particular link is changed.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Sub Add ( _
    domainRole As DomainRoleInfo, _
    elementLinkId As Guid, _
    handler As Delegate _
)
public void Add(
    DomainRoleInfo domainRole,
    Guid elementLinkId,
    Delegate handler
)
public:
void Add(
    DomainRoleInfo^ domainRole, 
    Guid elementLinkId, 
    Delegate^ handler
)
member Add : 
        domainRole:DomainRoleInfo * 
        elementLinkId:Guid * 
        handler:Delegate -> unit
public function Add(
    domainRole : DomainRoleInfo, 
    elementLinkId : Guid, 
    handler : Delegate
)

Parameters

  • elementLinkId
    Type: System.Guid

    The ID of the link to observe.

.NET Framework Security

See Also

Reference

RolePlayerChangedEventManager Class

Add Overload

Microsoft.VisualStudio.Modeling Namespace