SqlFileStream.EndRead(IAsyncResult) 方法
定义
等待挂起的异步读取完成。Waits for the pending asynchronous read to complete.
public:
override int EndRead(IAsyncResult ^ asyncResult);
public override int EndRead (IAsyncResult asyncResult);
override this.EndRead : IAsyncResult -> int
Public Overrides Function EndRead (asyncResult As IAsyncResult) As Integer
参数
- asyncResult
- IAsyncResult
对要完成的挂起异步请求的引用。The reference to the pending asynchronous request to finish.
返回
从流中读取的字节数,介于零 (0) 和所请求的字节数之间。The number of bytes read from the stream, between zero (0) and the number of bytes you requested. 流仅在流结尾返回零 (0),否则在至少有 1 个字节可用之前应一直进行阻止。Streams return zero (0) only at the end of the stream, otherwise, they should block until at least one byte is available.
例外
IAsyncResult 对象并非来自相应的 BeginRead 方法。The IAsyncResult object did not come from the corresponding BeginRead method.