Language

EnlistTransactionInterceptionContext.WithTransaction(Transaction) メソッド

定義

特定のTransactionと共に、このインターセプト コンテキスト内のすべてのコンテキスト情報を含む新しいEnlistTransactionInterceptionContextを作成します。

public System.Data.Entity.Infrastructure.Interception.EnlistTransactionInterceptionContext WithTransaction(System.Transactions.Transaction transaction);
member this.WithTransaction : System.Transactions.Transaction -> System.Data.Entity.Infrastructure.Interception.EnlistTransactionInterceptionContext

パラメーター

transaction
Transaction

EnlistTransaction(Transaction)呼び出しで使用されるトランザクション。

戻り値

特定の分離レベルに関連付けられた新しいインターセプト コンテキスト。

適用対象