Bagikan melalui


Compensator.BeginCommit(Boolean) Metode

Definisi

Memberi tahu Compensator Compensating Resource Manager (CRM) tentang fase penerapan penyelesaian transaksi dan pengiriman rekaman yang akan datang.

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)

Parameter

fRecovery
Boolean

true untuk mulai menerapkan fase; jika tidak, false.

Contoh

Contoh kode berikut menunjukkan implementasi metode ini.

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

Berlaku untuk