This documentation is archived and is not being maintained.

XmlWriter.Flush Method

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()
public abstract void Flush();
public: virtual void Flush() = 0;
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

See Also

XmlWriter Class | XmlWriter Members | System.Xml Namespace