Causes any buffered data to be written to the underlying device.
This method invokes System.IO.Stream.Flush on the underlying stream.