When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
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.