Share via


EnlistTransactionInterceptionContext.WithTransaction(Transaction) Method

Definition

Creates a new EnlistTransactionInterceptionContext that contains all the contextual information in this interception context together with the given Transaction.

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

Parameters

transaction
Transaction

The transaction to be used in the EnlistTransaction(Transaction) invocation.

Returns

A new interception context associated with the given isolation level.

Applies to