Ends an asynchronous write, blocking until the I/O operation has completed.
- asyncResult
- The IAsyncResult object for the pending asynchronous request.
Type Reason ArgumentNullException asyncResult is null. ArgumentException asyncResult was not returned by a call to FileStream.BeginWrite(Byte[], int, int, AsyncCallback, object). InvalidOperationException FileStream.EndWrite(IAsyncResult) was called multiple times with asyncResult .
FileStream.EndWrite(IAsyncResult) will block until the I/O operation has completed.
Note: This method overrides Stream.EndWrite(IAsyncResult).
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0