Stream. Flush Async(CancellationToken) Method
Asynchronously clears all buffers for this stream, and monitors cancellation requests.
public: override System::Threading::Tasks::Task ^ FlushAsync(System::Threading::CancellationToken cancellationToken);
[System.Runtime.InteropServices.ComVisible(false)] public override System.Threading.Tasks.Task FlushAsync (System.Threading.CancellationToken cancellationToken);
override this.FlushAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
The token to monitor for cancellation requests.
A task that represents the asynchronous flush operation.
The stream has been disposed.
Because any data written to a MemoryStream object is written into RAM, this method is redundant.