This topic has not yet been rated - Rate this topic

FileStream.EndWrite Method

April 12, 2014

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.