FileSystemEnumerator<TResult> 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
枚举经 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 IDisposablePublic MustInherit Class FileSystemEnumerator(Of TResult)
Inherits CriticalFinalizerObject
Implements IEnumerator(Of TResult)类型参数
- 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 | 获取当前访问的对象。 |