This documentation is archived and is not being maintained.

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


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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0