共用方式為


DataTransaction.CurrentTransactionLevel 屬性

取得表示目前交易層級的數值。

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)

語法

'宣告
Public Overridable ReadOnly Property CurrentTransactionLevel As Integer
public virtual int CurrentTransactionLevel { get; }
public:
virtual property int CurrentTransactionLevel {
    int get ();
}
abstract CurrentTransactionLevel : int with get 
override CurrentTransactionLevel : int with get
function get CurrentTransactionLevel () : int

屬性值

類型:Int32
指定目前的交易層級的整數值。

實作

IVsDataTransaction.CurrentTransactionLevel

備註

交易層級套用,當提供者支援巢狀交易時,同時也提供追蹤巢狀層級。 在值為零時,沒有交易。

.NET Framework 安全性

請參閱

參考

DataTransaction 類別

Microsoft.VisualStudio.Data.Framework 命名空間