TransactionOptions 結構

定義

包含指定交易行為的其他資訊。Contains additional information that specifies transaction behaviors.

public value class TransactionOptions
public struct TransactionOptions
type TransactionOptions = struct
Public Structure TransactionOptions
繼承
TransactionOptions

備註

此結構會將交易的 timeout 和隔離等級參數封裝成單一、簡單的結構。This structure encapsulates the timeout and isolation level parameters for a transaction into a single, simple structure. 它會傳遞至TransactionScopeCommittableTransaction函式,以建立具有所需行為的新交易。It is passed to the TransactionScope and CommittableTransaction constructors to create a new transaction with the desired behaviors.

屬性

IsolationLevel

取得或設定交易的隔離等級 (Isolation Level)。Gets or sets the isolation level of the transaction.

Timeout

取得或設定交易的逾時期限。Gets or sets the timeout period for the transaction.

方法

Equals(Object)

判斷這個 TransactionOptions 執行個體和指定的物件是否相等。Determines whether this TransactionOptions instance and the specified object are equal.

GetHashCode()

傳回這個執行個體的雜湊碼。Returns the hash code for this instance.

運算子

Equality(TransactionOptions, TransactionOptions)

測試兩個指定的 TransactionOptions 執行個體是否相等。Tests whether two specified TransactionOptions instances are equivalent.

Inequality(TransactionOptions, TransactionOptions)

傳回值,這個值表示兩個 TransactionOptions 執行個體是否不相等。Returns a value that indicates whether two TransactionOptions instances are not equal.

適用於