Mono Class Library: System.IO.Stream Overview | Members

System.IO.Stream.EndWrite Method

Ends an asynchronous write operation. [Edit]

public virtual void EndWrite (IAsyncResult asyncResult)

Parameters

asyncResult
A IAsyncResult that references the outstanding asynchronous I/O request. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionThe asyncResult parameter is null. [Edit]
ArgumentExceptionasyncResult did not originate from a Stream.BeginWrite(Byte[], int, int, AsyncCallback, object) method on the current stream. [Edit]

Remarks

Stream.EndWrite(IAsyncResult) is required to be called exactly once for every Stream.BeginWrite(Byte[], int, int, AsyncCallback, object). Stream.EndWrite(IAsyncResult) blocks until the write I/O operation has completed.

Operation
As described above.

[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0