Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MemoryMappedViewStream::Flush Method ()

.NET Framework (current version)
 

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:
[SecurityCriticalAttribute]
virtual void Flush() override

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
Available since 4.0
Return to top
Show:
© 2017 Microsoft