Condividi tramite


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

'Dichiarazione
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