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
IOException

An I/O error occurred while flushing the data.

ObjectDisposedException

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

NotSupportedException

This operation is not supported.

OutOfMemoryException

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

UnauthorizedAccessException

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

SequenceFullException

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

InvalidOperationException

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
Show:
© 2016 Microsoft