語言

FileSystemEnumerator<TResult> 類別

定義

列舉被搜尋與篩選 FileSystemEnumerable<TResult>的所提供類型檔案系統元素。

generic <typename TResult>
public ref class FileSystemEnumerator abstract : System::Runtime::ConstrainedExecution::CriticalFinalizerObject, System::Collections::Generic::IEnumerator<TResult>
public abstract class FileSystemEnumerator<TResult> : System.Runtime.ConstrainedExecution.CriticalFinalizerObject, System.Collections.Generic.IEnumerator<TResult>
type FileSystemEnumerator<'Result> = class
    inherit CriticalFinalizerObject
    interface IEnumerator<'Result>
    interface IEnumerator
    interface IDisposable
Public MustInherit Class FileSystemEnumerator(Of TResult)
Inherits CriticalFinalizerObject
Implements IEnumerator(Of TResult)

類型參數

TResult

此檔案系統列舉器所產生的結果類型。

繼承
FileSystemEnumerator<TResult>
實作

建構函式

名稱 Description
FileSystemEnumerator<TResult>(String, EnumerationOptions)

封裝了一次尋找操作。

屬性

名稱 Description
Current

獲得目前造訪的元素。

方法

名稱 Description
ContinueOnError(Int32)

當在衍生類別中覆寫時,會回傳一個值,指示是否繼續執行或拋出預設例外。

Dispose()

釋放目前類別實例 FileSystemEnumerator<TResult> 所使用的資源。

Dispose(Boolean)

當在衍生類別中覆寫時,會釋放該 FileSystemEnumerator<TResult> 類別使用的非管理資源,並可選擇性地釋放管理資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
MoveNext()

將列舉器推進到下一個項目 FileSystemEnumerator<TResult>。

OnDirectoryFinished(ReadOnlySpan<Char>)

當在衍生類別中覆寫時,當到達目錄的末尾時,會呼叫此方法。

Reset()

總是投擲 NotSupportedException。

ShouldIncludeEntry(FileSystemEntry)

當在派生類別中覆寫時,決定是否應包含指定的檔案系統條目。

ShouldRecurseIntoEntry(FileSystemEntry)

當在衍生類別中覆寫時,決定指定的檔案系統項目是否應該被遞迴。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)
TransformEntry(FileSystemEntry)

當在衍生類別中覆寫時,會從目前的項目產生結果型別。

明確介面實作

名稱 Description
IEnumerator.Current

取得目前造訪的物件。

適用於