MemoryStream::FlushAsync Method (CancellationToken)
Asynchronously clears all buffers for this stream, and monitors cancellation requests.
Assembly: mscorlib (in mscorlib.dll)
public: [ComVisibleAttribute(false)] [HostProtectionAttribute(SecurityAction::LinkDemand, ExternalThreading = true)] virtual Task^ FlushAsync( CancellationToken cancellationToken ) override
The token to monitor for cancellation requests.
Return ValueType: System.Threading.Tasks::Task^
A task that represents the asynchronous flush operation.
Because any data written to a MemoryStream object is written into RAM, this method is redundant.
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1