IRecordSequence.ReadRestartAreas Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, returns an enumerable collection of the restart areas in the sequence.

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

IEnumerable<LogRecord> ReadRestartAreas()

Return Value

Type: System.Collections.Generic.IEnumerable<LogRecord>

An enumerable collection of the restart areas in the sequence.

Exception Condition

One or more of the arguments is invalid.


An I/O error occurred while reading the record.


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

The restart areas are enumerated in reverse sequence number order, that is, from the highest sequence number to the lowest sequence number. Only restart areas with sequence numbers between the last sequence number and the base sequence number are enumerated.


If the log extent containing the BaseSequenceNumber becomes corrupted, this method can throw an IOException with the error message "The request could not be performed because of an unexpected I/O exception. The following error code was returned: '80070026'".

.NET Framework
Available since 3.0
Return to top