共用方式為


RelationalConnection.ConnectionEnlistTransaction(Transaction) Method

Definition

Template method that by default calls EnlistTransaction(Transaction) but can be overridden by providers to make a different call instead.

protected virtual void ConnectionEnlistTransaction (System.Transactions.Transaction? transaction);
abstract member ConnectionEnlistTransaction : System.Transactions.Transaction -> unit
override this.ConnectionEnlistTransaction : System.Transactions.Transaction -> unit
Protected Overridable Sub ConnectionEnlistTransaction (transaction As Transaction)

Parameters

transaction
Transaction

The transaction to be used.

Applies to