FileSystemEnumerator<TResult> Třída
Definice
Vytvoří výčet prvků systému souborů poskytnutého typu, které jsou prohledávány a filtrovány pomocí 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)
Parametry typu
- TResult
Typ výsledku, který vytvořil tento enumerátor systému souborů.The type of the result produced by this file system enumerator.
- Dědičnost
- Implementuje
Konstruktory
FileSystemEnumerator<TResult>(String, EnumerationOptions) |
Zapouzdřuje operaci Find.Encapsulates a find operation. |
Vlastnosti
Current |
Získá aktuálně navštívený element.Gets the currently visited element. |
Metody
ContinueOnError(Int32) |
Při převrácení v odvozené třídě vrátí hodnotu, která označuje, zda chcete pokračovat v provádění nebo vyvolat výchozí výjimku.When overriden in a derived class, returns a value that indicates whether to continue execution or throw the default exception. |
Dispose() |
Uvolní prostředky používané aktuální instancí třídy FileSystemEnumerator<TResult>.Releases the resources used by the current instance of the FileSystemEnumerator<TResult> class. |
Dispose(Boolean) |
Při přepsání v odvozené třídě uvolní nespravované prostředky používané FileSystemEnumerator<TResult> třídou a volitelně uvolní spravované prostředky.When overridden in a derived class, releases the unmanaged resources used by the FileSystemEnumerator<TResult> class and optionally releases the managed resources. |
Equals(Object) |
Určí, zda se zadaný objekt rovná aktuálnímu objektu.Determines whether the specified object is equal to the current object. (Zděděno od Object) |
GetHashCode() |
Slouží jako výchozí funkce hash.Serves as the default hash function. (Zděděno od Object) |
GetType() |
Získá Type aktuální instanci.Gets the Type of the current instance. (Zděděno od Object) |
MemberwiseClone() |
Vytvoří kopii aktuálního seznamu Object .Creates a shallow copy of the current Object. (Zděděno od Object) |
MoveNext() |
Posune enumerátor na další položku FileSystemEnumerator<TResult> .Advances the enumerator to the next item of the FileSystemEnumerator<TResult>. |
OnDirectoryFinished(ReadOnlySpan<Char>) |
Při přečtení v odvozené třídě je tato metoda volána vždy, když je dosaženo konce adresáře.When overriden in a derived class, this method is called whenever the end of a directory is reached. |
Reset() |
Vždy vyvolá NotSupportedException .Always throws NotSupportedException. |
ShouldIncludeEntry(FileSystemEntry) |
Při přepsání v odvozené třídě Určuje, zda má být ve výsledcích obsažena zadaná položka systému souborů.When overridden in a derived class, determines whether the specified file system entry should be included in the results. |
ShouldRecurseIntoEntry(FileSystemEntry) |
Pokud je přepsáno v odvozené třídě, určuje, zda má být zadaná položka systému souborů rekurze.When overridden in a derived class, determines whether the specified file system entry should be recursed. |
ToString() |
Vrátí řetězec, který představuje aktuální objekt.Returns a string that represents the current object. (Zděděno od Object) |
TransformEntry(FileSystemEntry) |
Při přepsání v odvozené třídě vygeneruje výsledný typ z aktuální položky.When overridden in a derived class, generates the result type from the current entry. |
Explicitní implementace rozhraní
IEnumerator.Current |
Získá aktuálně navštívený objekt.Gets the currently visited object. |