Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileStream.EndWrite Method

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