FileSystemEnumerator<TResult> 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
列舉所提供類型的檔案系統項目,其由 FileSystemEnumerable<TResult> 所搜尋和篩選。
generic <typename TResult>
public ref class FileSystemEnumerator abstract : System::Runtime::ConstrainedExecution::CriticalFinalizerObject, System::Collections::Generic::IEnumerator<TResult>
C#
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
這個文件系統列舉值所產生的結果型別。
- 繼承
- 實作
Current |
取得目前瀏覽的元素。 |
Continue |
會在衍生類別中覆寫時傳回值,指出是否要繼續執行,或擲回預設的例外狀況。 |
Dispose() |
將 FileSystemEnumerator<TResult> 類別的目前執行個體所使用的資源釋出。 |
Dispose(Boolean) |
在衍生類別中覆寫時,釋出 FileSystemEnumerator<TResult> 類別使用的 Unmanaged 資源,並選擇性釋出 Managed 資源。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Get |
做為預設雜湊函式。 (繼承來源 Object) |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
Move |
將列舉值前移至 FileSystemEnumerator<TResult> 的下一個項目。 |
On |
在衍生類別中覆寫時,每當到達目錄結尾時,就會呼叫這個方法。 |
Reset() |
永遠擲回 NotSupportedException。 |
Should |
在衍生類別中覆寫時,判斷指定的檔案系統項目是否應包含在結果中。 |
Should |
在衍生類別中覆寫時,判斷是否應遞迴指定的檔案系統項目。 |
To |
傳回代表目前物件的字串。 (繼承來源 Object) |
Transform |
在衍生類別中覆寫時,從目前的項目產生結果類型。 |
IEnumerator. |
取得目前瀏覽的物件。 |
產品 | 版本 |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |