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>
實作

建構函式

FileSystemEnumerator<TResult>(String, EnumerationOptions)

封裝尋找作業。

屬性

Current

取得目前瀏覽的元素。

方法

ContinueOnError(Int32)

會在衍生類別中覆寫時傳回值,指出是否要繼續執行,或擲回預設的例外狀況。

Dispose()

FileSystemEnumerator<TResult> 類別的目前執行個體所使用的資源釋出。

Dispose(Boolean)

在衍生類別中覆寫時,釋出 FileSystemEnumerator<TResult> 類別使用的 Unmanaged 資源,並選擇性釋出 Managed 資源。

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)

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

明確介面實作

IEnumerator.Current

取得目前瀏覽的物件。

適用於