Waits for the pending asynchronous read to complete. (Consider using the ReadAsync method instead; see the Remarks section.)
Assembly: System (in System.dll)
'Declaration Public Overrides Function EndRead ( _ asyncResult As IAsyncResult _ ) As Integer
- Type: System.IAsyncResult
The reference to the pending asynchronous request to finish.
asyncResult is Nothing.
asyncResult did not originate from a BeginRead method on the current stream.
An exception was thrown during a call to WaitOne.
The end call is invalid because asynchronous read operations for this stream are not yet complete.
The stream is Nothing.
Starting with the .NET Framework 4.5, you can perform asynchronous read operations by using the ReadAsync method. The method is still available in the .NET Framework 4.5 to support legacy code; however, you can implement asynchronous I/O operations more easily by using the new async methods. For more information, see Asynchronous File I/O.
Call this method to determine how many bytes were read from the stream. This method can be called once to return the amount of bytes read between calls to BeginRead and .
This method blocks until the I/O operation has completed.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)