IRecordSequence.EndReserveAndAppend(IAsyncResult) 方法

定义

在派生类中重写时,结束异步保留和追加操作。When overridden in a derived class, ends an asynchronous reserve and append operation.

public:
 System::IO::Log::SequenceNumber EndReserveAndAppend(IAsyncResult ^ result);
public System.IO.Log.SequenceNumber EndReserveAndAppend (IAsyncResult result);
abstract member EndReserveAndAppend : IAsyncResult -> System.IO.Log.SequenceNumber
Public Function EndReserveAndAppend (result As IAsyncResult) As SequenceNumber

参数

result
IAsyncResult

对未完成的异步 I/O 请求的引用。A reference to the outstanding asynchronous I/O request.

返回

SequenceNumber

追加的日志记录的序列号。The sequence number of the appended log record.

例外

一个或多个自变量无效。One or more of the arguments is invalid.

该方法是在序列已释放之后调用的。The method was called after the sequence has been disposed of.

注解

此方法将一直阻塞,直到 I/O 操作已完成。This method blocks until the I/O operation has completed. 调用 EndReserveAndAppend 时,异步写入请求过程中发生的错误(例如,I/O 请求过程中的磁盘故障)将变得可见。Errors that occur during an asynchronous write request, such as a disk failure during the I/O request, become visible when EndReserveAndAppend is called.

必须对 IAsyncResult 方法返回的每个 BeginReserveAndAppend 调用此方法且只能调用一次。This method must be called exactly once on every IAsyncResult returned by the BeginReserveAndAppend method.

适用于