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
'宣告
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
- 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.