Flush whatever is in the buffer to the underlying streams and flush the underlying stream.
[Visual Basic] MustOverride Public 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 XmlWriter buffer.
XmlWriter Class | XmlWriter Members | System.NewXml Namespace