LogRecordSequence.ReadRestartAreas 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳序列中可枚舉的重啟區域集合。 無法繼承這個方法。
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)
傳回
序列中可列舉的重啟區域集合。
實作
例外狀況
start 不介於該序列的基數與末一序列號之間。
由於意外的 I/O 異常,請求無法執行。
-或-
由於 I/O 裝置錯誤,請求無法執行。
-或
用於寫入日誌記錄的緩衝區大小大於讀取日誌的緩衝區大小。
-或-
記錄序列被損壞了。
-或-
指定的日誌檔案格式或版本無效。
-或-
該紀錄是用不相容的記錄序列寫入的。
該方法是在序列被處理後才被呼叫的。
記憶體不足以繼續執行程式。
作業系統會拒絕存取指定的日誌序列。
備註
重啟區域依序為逆序序,從序號最高到最低。 僅列舉序列號介於上一序列號與基礎序列號之間的重啟區域。