BufferedStream::FlushAsync Method (CancellationToken)
.NET Framework (current version)
Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- cancellationToken
-
Type:
System.Threading::CancellationToken
The token to monitor for cancellation requests.
Return Value
Type: System.Threading.Tasks::Task^A task that represents the asynchronous flush operation.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The stream has been disposed. |
.NET Framework
Available since 4.5
Available since 4.5
Show: