Muokkaa

Jaa


LogRecordSequence.ReadRestartAreas Method

Definition

Returns an enumerable collection of the restart areas in the sequence. This method cannot be inherited.

public:
 virtual System::Collections::Generic::IEnumerable<System::IO::Log::LogRecord ^> ^ ReadRestartAreas();
public System.Collections.Generic.IEnumerable<System.IO.Log.LogRecord> ReadRestartAreas ();
abstract member ReadRestartAreas : unit -> seq<System.IO.Log.LogRecord>
override this.ReadRestartAreas : unit -> seq<System.IO.Log.LogRecord>
Public Function ReadRestartAreas () As IEnumerable(Of LogRecord)

Returns

An enumerable collection of the restart areas in the sequence.

Implements

Exceptions

start is not between the base and last sequence numbers of this sequence.

The request could not be performed because of an unexpected I/O exception.

-or-

The request could not be performed because of an I/O device error.

-or

The buffer size used to write the log record is larger than the buffer size being used to read it.

-or-

The record sequence is corrupted.

-or-

The specified log file format or version is invalid.

-or-

The record was written with an incompatible version of the record sequence.

The operation is invalid because the enumeration has not been started. A call to MoveNext() must be made.

-or

The enumeration has ended.

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

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

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

Remarks

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.

Applies to