IRecordSequence.ReadRestartAreas Method

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

IEnumerable<LogRecord> ReadRestartAreas ()
IEnumerable<LogRecord> ReadRestartAreas ()
function ReadRestartAreas () : IEnumerable<LogRecord>
Not applicable.

Return Value

An enumerable collection of the restart areas in the sequence.

Exception typeCondition


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'".

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions