IPromotableSinglePhaseNotification.SinglePhaseCommit 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
通知一個已登記的物件交易正在提交。
public:
void SinglePhaseCommit(System::Transactions::SinglePhaseEnlistment ^ singlePhaseEnlistment);
public void SinglePhaseCommit(System.Transactions.SinglePhaseEnlistment singlePhaseEnlistment);
abstract member SinglePhaseCommit : System.Transactions.SinglePhaseEnlistment -> unit
Public Sub SinglePhaseCommit (singlePhaseEnlistment As SinglePhaseEnlistment)
參數
- singlePhaseEnlistment
- SinglePhaseEnlistment
一個 SinglePhaseEnlistment 用來向交易管理器發送回應的介面。
備註
此方法通知已登記物件交易將被提交。
參數包含 singlePhaseEnlistment 回調,允許此介面實作通知交易管理員交易結果,因為交易管理員已委派交易控制權。 在被升級的交易中,交易管理器會監聽交易結果並覆寫已發送的回應。
收到此通知後,資源管理器應嘗試提交其內部交易(或若已升級為分散式交易),並根據提交交易結果,對參數呼叫回調方法 singlePhaseEnlistment 之一。