Share via


RolePlayerChangedEventManager.Add Method (DomainRoleInfo, Delegate)

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

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

Syntax

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

Parameters

  • handler
    Type: Delegate

    The handler for the notifications.

.NET Framework Security

See Also

Reference

RolePlayerChangedEventManager Class

Add Overload

Microsoft.VisualStudio.Modeling Namespace