FileStream.EndWrite Method

July 28, 2014

Ends an asynchronous write, blocking until the I/O operation has completed.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Overrides Sub EndWrite ( _
	asyncResult As IAsyncResult _
)

Parameters

asyncResult
Type: System.IAsyncResult
The pending asynchronous I/O request.

ExceptionCondition
ArgumentNullException

asyncResult is Nothing.

ArgumentException

This IAsyncResult object was not created by calling BeginWrite on this class.

InvalidOperationException

EndWrite is called multiple times.

IOException

The stream is closed or an internal error has occurred.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft