Share via


Stream.Flush Method

When overridden in a derived class, this method clears all buffers for the current Stream object and causes any buffered data to be written to the underlying device.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual abstract void Flush ()

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Stream Class
Stream Members
System.IO Namespace