共用方式為


Compensator.CommitRecord(LogRecord) 方法

定義

在認可階段依轉寄順序傳送記錄檔資料錄。

public:
 virtual bool CommitRecord(System::EnterpriseServices::CompensatingResourceManager::LogRecord ^ rec);
public virtual bool CommitRecord (System.EnterpriseServices.CompensatingResourceManager.LogRecord rec);
abstract member CommitRecord : System.EnterpriseServices.CompensatingResourceManager.LogRecord -> bool
override this.CommitRecord : System.EnterpriseServices.CompensatingResourceManager.LogRecord -> bool
Public Overridable Function CommitRecord (rec As LogRecord) As Boolean

參數

rec
LogRecord

要轉寄的記錄檔資料錄。

傳回

如果應該忘記已傳送的資料錄,則為 true,否則為 false

範例

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

public:
    virtual bool CommitRecord(LogRecord^ log) override
    {
        // nothing to do
        return(false);
    }
public override bool CommitRecord (LogRecord log)
{
    // nothing to do
    return(false);
}
Public Overrides Function CommitRecord(ByVal log As LogRecord) As Boolean 
    ' nothing to do
    Return False

End Function 'CommitRecord

適用於