FileSystemEnumerator<TResult> 類別

定義

列舉由 FileSystemEnumerable<TResult> 搜尋和篩選之所提供類型的檔案系統元素。Enumerates the file system elements of the provided type that are being searched and filtered by a 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

此檔案系統列舉值所產生的結果類型。The type of the result produced by this file system enumerator.

繼承
FileSystemEnumerator<TResult>
實作

建構函式

FileSystemEnumerator<TResult>(String, EnumerationOptions)

封裝尋找作業。Encapsulates a find operation.

屬性

Current

取得目前瀏覽的元素。Gets the currently visited element.

方法

ContinueOnError(Int32)

會在衍生類別中覆寫時傳回值,指出是否要繼續執行,或擲回預設的例外狀況。When overriden in a derived class, returns a value that indicates whether to continue execution or throw the default exception.

Dispose()

FileSystemEnumerator<TResult> 類別的目前執行個體所使用的資源釋出。Releases the resources used by the current instance of the FileSystemEnumerator<TResult> class.

Dispose(Boolean)

在衍生類別中覆寫時,釋出 FileSystemEnumerator<TResult> 類別使用的 Unmanaged 資源,並選擇性釋出 Managed 資源。When overridden in a derived class, releases the unmanaged resources used by the FileSystemEnumerator<TResult> class and optionally releases the managed resources.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
MoveNext()

將列舉值前移至 FileSystemEnumerator<TResult> 的下一個項目。Advances the enumerator to the next item of the FileSystemEnumerator<TResult>.

OnDirectoryFinished(ReadOnlySpan<Char>)

在衍生類別中覆寫時,每當到達目錄結尾時,就會呼叫這個方法。When overriden in a derived class, this method is called whenever the end of a directory is reached.

Reset()

永遠擲回 NotSupportedExceptionAlways throws NotSupportedException.

ShouldIncludeEntry(FileSystemEntry)

在衍生類別中覆寫時,判斷指定的檔案系統項目是否應包含在結果中。When overridden in a derived class, determines whether the specified file system entry should be included in the results.

ShouldRecurseIntoEntry(FileSystemEntry)

在衍生類別中覆寫時,判斷是否應遞迴指定的檔案系統項目。When overridden in a derived class, determines whether the specified file system entry should be recursed.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TransformEntry(FileSystemEntry)

在衍生類別中覆寫時,從目前的項目產生結果類型。When overridden in a derived class, generates the result type from the current entry.

明確介面實作

IEnumerator.Current

取得目前瀏覽的物件。Gets the currently visited object.

適用於