Ends an asynchronous write operation.
- asyncResult
- A IAsyncResult that references the outstanding asynchronous I/O request.
Type Reason ArgumentNullException The asyncResult parameter is null. ArgumentException asyncResult did not originate from a Stream.BeginWrite(Byte[], int, int, AsyncCallback, object) method on the current stream.
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.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0