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

适用于