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> 的非托管资源,并选择性地释放托管资源。

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

获取当前访问的对象。

适用于