Struct FileSystem.DirectoryEnumerable
Represents an enumerable collection of file system entries for a specified directory path
public readonly struct FileSystem.DirectoryEnumerable : IEnumerable<string>, IEnumerable
- Implements
- Inherited Members
Constructors
DirectoryEnumerable(string)
Represents an enumerable collection of file system entries for a specified directory path
public DirectoryEnumerable(string path)
Parameters
pathstringThe path to the directory to enumerate
Exceptions
- ArgumentException
pathisnull, empty, or consists exclusively of white-space characters
Methods
GetEnumerator()
Gets an enumerator that enumerates through the file system entries for this FileSystem.DirectoryEnumerable
public FileSystem.DirectoryEnumerable.Enumerator GetEnumerator()
Returns
- FileSystem.DirectoryEnumerable.Enumerator
An FileSystem.DirectoryEnumerable.Enumerator that can be used to enumerate the file system entries for this FileSystem.DirectoryEnumerable
Exceptions
- SdlException
Couldn't create an FileSystem.DirectoryEnumerable.Enumerator for this FileSystem.DirectoryEnumerable (check TryGet(out string?) for more information)