共用方式為


TransactionEventManager.Add Method (Guid, Delegate)

Adds an event handler delegate for global event notifications.

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

Syntax

'宣告
Public Sub Add ( _
    transactionId As Guid, _
    handler As Delegate _
)
public void Add(
    Guid transactionId,
    Delegate handler
)
public:
void Add(
    Guid transactionId, 
    Delegate^ handler
)
member Add : 
        transactionId:Guid * 
        handler:Delegate -> unit 
public function Add(
    transactionId : Guid, 
    handler : Delegate
)

Parameters

  • transactionId
    Type: System.Guid
    The ID of the transaction.

.NET Framework Security

See Also

Reference

TransactionEventManager Class

Add Overload

Microsoft.VisualStudio.Modeling Namespace