Complete the asynchronous read request, release resources and retrieve the result.

C# | Visual Basic | Managed C++ |
int EndRead ( IAsyncResult asyncResult )
Function EndRead ( _ asyncResult As IAsyncResult _ ) As Integer
int EndRead ( IAsyncResult^ asyncResult )

- asyncResult (IAsyncResult)
- The asynchronous read request.

The number of bytes read. An exception may be thrown if the operation failed.