SqlTransaction.IsolationLevel 属性

定义

为该事务指定 IsolationLevel

public:
 virtual property System::Data::IsolationLevel IsolationLevel { System::Data::IsolationLevel get(); };
public:
 property System::Data::IsolationLevel IsolationLevel { System::Data::IsolationLevel get(); };
public override System.Data.IsolationLevel IsolationLevel { get; }
public System.Data.IsolationLevel IsolationLevel { get; }
member this.IsolationLevel : System.Data.IsolationLevel
Public Overrides ReadOnly Property IsolationLevel As IsolationLevel
Public ReadOnly Property IsolationLevel As IsolationLevel

属性值

该事务的 IsolationLevel。 默认值为 ReadCommitted

实现

注解

不支持并行事务。 因此, IsolationLevel 适用于整个事务。

有关SQL Server隔离级别的详细信息,请参阅事务隔离级别

适用于

另请参阅