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
- 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.