SeekableStreamEndRead - метод
Waits for the pending asynchronous read to complete. (Consider using ReadAsync(Byte, Int32, Int32) instead.)
Пространство имён: Tessa.Platform.IOСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public override int EndRead(
IAsyncResult asyncResult
)
Public Overrides Function EndRead (
asyncResult As IAsyncResult
) As Integer
public:
virtual int EndRead(
IAsyncResult^ asyncResult
) override
abstract EndRead :
asyncResult : IAsyncResult -> int
override EndRead :
asyncResult : IAsyncResult -> int
- asyncResult IAsyncResult
- The reference to the pending asynchronous request to finish.
Int32The number of bytes read from the stream, between zero (0) and the number of bytes you requested. Streams return zero (0) only at the end of the stream, otherwise, they should block until at least one byte is available.
ArgumentNullException | asyncResult is . |
ArgumentException | A handle to the pending read operation is not available.
-or-
The pending operation does not support reading. |
InvalidOperationException | asyncResult did not originate from a BeginRead(Byte, Int32, Int32, AsyncCallback, Object) method on the current stream. |
IOException | The stream is closed or an internal error has occurred. |