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 ( _
transactionId As Guid, _
handler As Delegate _
)
'使用
Dim instance As TransactionEventManager
Dim transactionId As Guid
Dim handler As Delegate
instance.Add(transactionId, handler)
public void Add(
Guid transactionId,
Delegate handler
)
public:
void Add(
Guid transactionId,
Delegate^ handler
)
public function Add(
transactionId : Guid,
handler : Delegate
)
Parameters
transactionId
Type: System.GuidThe ID of the transaction.
handler
Type: System.DelegateThe event handler delegate.
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.