Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ReadRestartAreas Method

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.

ExceptionCondition
ArgumentException

One or more of the arguments is invalid.

IOException

An I/O error occurred while reading the record.

ObjectDisposedException

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.

NoteNote

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft