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()
[C#]
public abstract void Flush();
[C++]
public: virtual void Flush() = 0;
[JScript]
public abstract function Flush();

Remarks

This is called instead of Close when you want to write more to the underlying stream without losing what is still in the buffer.

Example

See Flush (in the XmlTextWriter class) for an example using this method.

Requirements

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

Show: