When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
[Visual Basic] Public MustOverride Sub Flush() [C#] public abstract void Flush(); [C++] public: virtual void Flush() = 0; [JScript] public abstract function Flush();
This is called instead of Close when you want to write more to the underlying stream without losing what is still in the buffer.
See Flush (in the XmlTextWriter class) for an example using this method.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard