Uredi

Deli z drugimi prek


MemoryMappedViewAccessor.Flush Method

Definition

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

public:
 void Flush();
public void Flush ();
[System.Security.SecurityCritical]
public void Flush ();
member this.Flush : unit -> unit
[<System.Security.SecurityCritical>]
member this.Flush : unit -> unit
Public Sub Flush ()
Attributes

Exceptions

Methods were called after the accessor was closed.

Remarks

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.

Applies to