检索当前事务级别。
命名空间: Microsoft.VisualStudio.Data.AdoDotNet
程序集: Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)
语法
声明
Public Overridable ReadOnly Property CurrentTransactionLevel As Integer
public virtual int CurrentTransactionLevel { get; }
public:
virtual property int CurrentTransactionLevel {
int get ();
}
abstract CurrentTransactionLevel : int
override CurrentTransactionLevel : int
function get CurrentTransactionLevel () : int
属性值
类型:System.Int32
返回当前事务级别的整数表示。
备注
基实现假定只有一个事务级别提供程序在事务支持并返回1;如果和0否则为。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。