共用方式為


Compensator.BeginCommit(Boolean) 方法

定義

告知 Compensating Resource Manager (CRM) 補償器,關於交易完成的認可階段和資料錄即將傳送。

public:
 virtual void BeginCommit(bool fRecovery);
public virtual void BeginCommit (bool fRecovery);
abstract member BeginCommit : bool -> unit
override this.BeginCommit : bool -> unit
Public Overridable Sub BeginCommit (fRecovery As Boolean)

參數

fRecovery
Boolean

若要開始認可階段,則為 true,否則為 false

範例

下列程式代碼範例示範這個方法的實作。

public:
    virtual void BeginCommit(bool commit) override
    {
        // nothing to do
    }
public override void BeginCommit (bool commit)
{
    // nothing to do
}
Public Overrides Sub BeginCommit(ByVal commit As Boolean) 

End Sub

' nothing to do

適用於