System.Xml.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.

Syntax

public abstract void Flush ()

Remarks

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

For the asynchronous version of this method, see XmlWriter.FlushAsync.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0