NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Stream.Flush

Updates the underlying data source or repository with the current state of the buffer and then clears the buffer.

If a stream does not implement a buffer, this method will do nothing.

[Visual Basic]
MustOverride Public Sub Flush()
[C#]
public abstract void Flush();
[C++]
public: virtual void Flush() = 0;
[JScript]
public abstract function Flush();

Exceptions

Exception Type Condition
IOException An I/O error occurs.

Remarks

Because a buffer may be used for either reading or writing, but not both simultaneously, Flush might write to the underlying data source or repository any data previously written to the buffer, or Flush might clear the buffer, or both.

See Also

Stream Class | Stream Members | System.IO Namespace