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

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

- asyncResult (IAsyncResult)
- The asynchronous write request.

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