SqlTransaction.IsolationLevel 屬性

定義

指定適用於此交易的 IsolationLevel

C#
public override System.Data.IsolationLevel IsolationLevel { get; }
C#
public System.Data.IsolationLevel IsolationLevel { get; }

屬性值

適用於此交易的 IsolationLevel。 預設為 ReadCommitted

實作

備註

不支援平行交易。 因此,會 IsolationLevel 套用至整個交易。

如需有關 SQL Server 隔離等級的詳細資訊,請參閱交易隔離等級

適用於

產品 版本
.NET Core 1.0, Core 1.1
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

另請參閱