Compartilhar via


TransactionManager.CurrentTransaction Property

Gets the current active transaction.

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

Syntax

'Declaração
Public ReadOnly Property CurrentTransaction As Transaction
    Get
public Transaction CurrentTransaction { get; }
public:
property Transaction^ CurrentTransaction {
    Transaction^ get ();
}
member CurrentTransaction : Transaction
function get CurrentTransaction () : Transaction

Property Value

Type: Microsoft.VisualStudio.Modeling.Transaction
A Transaction object.

Remarks

To get the outermost transaction, use CurrentTransaction.TopLevelTransaction.

.NET Framework Security

See Also

Reference

TransactionManager Class

Microsoft.VisualStudio.Modeling Namespace