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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。