語言

TransactionManager.ImplicitDistributedTransactions 屬性

定義

取得或設定一個值,指示使用需要升級至分散式交易的 API 是否 System.Transactions 會升級。

public:
 static property bool ImplicitDistributedTransactions { bool get(); void set(bool value); };
public static bool ImplicitDistributedTransactions { get; [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Distributed transactions support may not be compatible with trimming. If your program creates a distributed transaction via System.Transactions, the correctness of the application cannot be guaranteed after trimming.")] [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
[<set: System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Distributed transactions support may not be compatible with trimming. If your program creates a distributed transaction via System.Transactions, the correctness of the application cannot be guaranteed after trimming.")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member ImplicitDistributedTransactions : bool with get, set
Public Shared Property ImplicitDistributedTransactions As Boolean

屬性值

true 若交易 API 選擇加入分散式交易; false 如果交易時拋出 a,API NotSupportedException 會升級為分散式交易。 預設值為 false。

屬性

適用於