Clears all buffers for the current writer and causes any buffered data to be written to the underlying stream.
Type Reason ObjectDisposedException The current writer is closed. System.IO.IOException An I/O error occurred.
Note: This method overrides TextWriter.Flush.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0