FileStream.EndWrite Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Ends an asynchronous write, blocking until the I/O operation has completed.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- asyncResult
- Type: System.IAsyncResult
The pending asynchronous I/O request.
| Exception | Condition |
|---|---|
| ArgumentNullException | asyncResult is Nothing. |
| 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. |
Show: