Adds an event handler delegate for global event notifications.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub Add ( _
handler As Delegate _
)
'使用
Dim instance As GlobalEventManager
Dim handler As Delegate
instance.Add(handler)
public void Add(
Delegate handler
)
public:
void Add(
Delegate^ handler
)
public function Add(
handler : Delegate
)
Parameters
handler
Type: System.DelegateThe handler to add.
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.