HostCurrentTransactionCallback 代理人

定義

提供一個機制,讓裝載環境提供自己的 Current 預設概念。

C#
public delegate System.Transactions.Transaction? HostCurrentTransactionCallback();
C#
public delegate System.Transactions.Transaction HostCurrentTransactionCallback();

傳回值

Transaction

Transaction 物件。

備註

此委派提供裝載環境的機制,以提供自己的預設概念 Current 。 當 為 nullCurrent 會呼叫它,而且目前沒有 TransactionScope 指出環境交易可能已經隱藏的 。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於

產品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
.NET Standard 2.0, 2.1