Flush Method
Collapse the table of content
Expand the table of content

LogRecordSequence.Flush Method ()


Ensures that all appended records have been written. This method cannot be inherited.

Namespace:   System.IO.Log
Assembly:  System.IO.Log (in System.IO.Log.dll)

public SequenceNumber Flush()

Return Value

Type: System.IO.Log.SequenceNumber

The sequence number of the last record written.

Exception Condition

An I/O error occurred while flushing the data.


The method was called after the sequence has been disposed of.


This operation is not supported.


There is not enough memory to continue the execution of the program.


Access for the specified log sequence is denied by the operating system.


The record sequence could not make enough free space to contain the new restart area.


The specified log does not have any extents. One or more extents must be created before a record sequence can be used.

Calling this method ensures that all records that have been appended to the LogRecordSequence have been durably written.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft