This documentation is archived and is not being maintained.

IsolatedStorageFileStream.Flush Method

Updates the file with the current state of the buffer then clears the buffer.

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)

public override void Flush ()
public void Flush ()
public override function Flush ()
Not applicable.

Since a buffer can be used for either reading or writing, but not both simultaneously, Flush performs two functions. First, any data previously written to the buffer is copied to the file and the buffer is cleared. Second, if CanSeek is true and data was previously copied from the file to the buffer for reading, the current position within the file is decremented by the number of unread bytes in the buffer. The buffer is then cleared.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: