Struct Storage.DirectoryEnumerable
Represents an enumerable collection of entries for a specified directory path within a storage container
public readonly struct Storage.DirectoryEnumerable : IEnumerable<string>, IEnumerable
- Implements
- Inherited Members
Remarks
If path is null or the empty string (""), this is treated as a request to enumerate the root of the storage container.
Constructors
DirectoryEnumerable(Storage, string?)
Represents an enumerable collection of entries for a specified directory path within a storage container
public DirectoryEnumerable(Storage storage, string? path)
Parameters
storageStorageThe storage container to enumerate
pathstringThe path to the directory to enumerate, or
nullor the empty string ("") to request the root of the storage container
Remarks
If path is null or the empty string (""), this is treated as a request to enumerate the root of the storage container.
Exceptions
- ArgumentNullException
storageisnull
Methods
GetEnumerator()
Gets an enumerator that enumerates through the entries for this Storage.DirectoryEnumerable
public Storage.DirectoryEnumerable.Enumerator GetEnumerator()
Returns
- Storage.DirectoryEnumerable.Enumerator
An Storage.DirectoryEnumerable.Enumerator that can be used to enumerate the entries for this Storage.DirectoryEnumerable
Exceptions
- SdlException
Couldn't create an Storage.DirectoryEnumerable.Enumerator for this Storage.DirectoryEnumerable (check TryGet(out string?) for more information)