共用方式為


BYOT.CreateWithTransaction(Object, Type) 方法

定義

建立登記於手動交易內的物件。

public:
 static System::Object ^ CreateWithTransaction(System::Object ^ transaction, Type ^ t);
public static object CreateWithTransaction (object transaction, Type t);
static member CreateWithTransaction : obj * Type -> obj
Public Shared Function CreateWithTransaction (transaction As Object, t As Type) As Object

參數

transaction
Object

指定交易的 ITransactionTransaction 物件。

t
Type

指定的型別。

傳回

要求的交易。

備註

CreateWithTransaction 會執行 COM+ 分散式交易協調器 (DTC) 方法 ICreateWithTransaction::CreateInstance的 Managed 對等專案。

適用於