Mono Class Library: System.IO.StreamWriter Overview | Members

System.IO.StreamWriter.Flush Method

Clears all buffers for the current writer and causes any buffered data to be written to the underlying stream. [Edit]

public override void Flush ()

Exceptions

TypeReason
ObjectDisposedExceptionThe current writer is closed. [Edit]
System.IO.IOException An I/O error occurred. [Edit]

Remarks

Note: This method overrides TextWriter.Flush.
[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0