Export (0) Print
Expand All

MemoryMappedViewStream.Flush Method

.NET Framework 4.6 and 4.5

Clears all buffers for this stream and causes any buffered data to be written to the underlying file.

Namespace:  System.IO.MemoryMappedFiles
Assembly:  System.Core (in System.Core.dll)

public override void Flush()

If you are using views that are adjacent to each other, this method will also clear the following data, provided its size is equal to a multiple of the system page size:

  • Any data that precedes the view up until the latest file offset.

  • Any data that follows the view up until the earliest file offset.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft