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 (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub Add ( _
domainRole As DomainRoleInfo, _
handler As Delegate _
)
'使用
Dim instance As RolePlayerChangedEventManager
Dim domainRole As DomainRoleInfo
Dim handler As Delegate
instance.Add(domainRole, handler)
public void Add(
DomainRoleInfo domainRole,
Delegate handler
)
public:
void Add(
DomainRoleInfo^ domainRole,
Delegate^ handler
)
public function Add(
domainRole : DomainRoleInfo,
handler : Delegate
)
Parameters
domainRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfoThe domain role to observe.
handler
Type: System.DelegateThe handler for the notifications.
Permissions
- 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.
See Also
Reference
RolePlayerChangedEventManager Class