EndWrite Method

FileStream.EndWrite Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

public override void EndWrite(
	IAsyncResult asyncResult
)

Parameters

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

ExceptionCondition
ArgumentNullException

asyncResult is null.

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:
© 2016 Microsoft