Share via


TransactionManager.CurrentTransaction Property

Gets the current active transaction.

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

Syntax

'Declaration
Public ReadOnly Property CurrentTransaction As Transaction
public Transaction CurrentTransaction { get; }
public:
property Transaction^ CurrentTransaction {
    Transaction^ get ();
}
member CurrentTransaction : Transaction with get
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