Muokkaa

Jaa


FileSystemEnumerator<TResult> Class

Definition

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)

Type Parameters

TResult

The type of the result produced by this file system enumerator.

Inheritance
FileSystemEnumerator<TResult>
Implements

Constructors

FileSystemEnumerator<TResult>(String, EnumerationOptions)

Encapsulates a find operation.

Properties

Current

Gets the currently visited element.

Methods

ContinueOnError(Int32)

When overriden in a derived class, returns a value that indicates whether to continue execution or throw the default exception.

Dispose()

Releases the resources used by the current instance of the FileSystemEnumerator<TResult> class.

Dispose(Boolean)

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.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MoveNext()

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()

Always 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.

(Inherited from Object)
TransformEntry(FileSystemEntry)

When overridden in a derived class, generates the result type from the current entry.

Explicit Interface Implementations

IEnumerator.Current

Gets the currently visited object.

Applies to