Ends a pending asynchronous read request.
- asyncResult
- The IAsyncResult object that references the pending asynchronous read request.
A int that indicates the number of bytes read from the stream, between 0 and the number of bytes specified via the Stream.BeginRead(Byte[], int, int, AsyncCallback, object) parameter count. Streams only return 0 at the end of the stream, otherwise, they block until at least 1 byte is available.
Type Reason ArgumentNullException asyncResult is null. ArgumentException asyncResult did not originate from a Stream.BeginRead(Byte[], int, int, AsyncCallback, object) method on the current stream.
Stream.EndRead(IAsyncResult) blocks until the I/O operation has completed.
Operation
As described above.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0