Transaction.Clone 方法

定义

创建事务的克隆。Creates a clone of the transaction.

public:
 System::Transactions::Transaction ^ Clone();
public System.Transactions.Transaction Clone ();
member this.Clone : unit -> System.Transactions.Transaction
Public Function Clone () As Transaction

返回

一个 Transaction 作为当前事务对象的副本。A Transaction that is a copy of the current transaction object.

注解

创建用于传递事务的克隆。Clones are created to pass transactions. 例如,你可能不想将 CommittableTransaction 传递给其他应用程序,因为你不希望其他人提交事务。For example, you might not want to pass a CommittableTransaction to other applications, because you do not want others to commit your transaction. 如果尝试封送或序列化事务,则会自动为您创建一个克隆。If you try to marshal or serialize a transaction, a clone is created for you automatically.

适用于