Method GetRelativeEntries
GetRelativeEntries(IRelativeDirectoryPath, SearchOptions?)
Gets the files/directories that reside in the combination of this directory and the search location, relative to this directory, which match the specified search options.
Declaration
IEnumerable<IRelativePath> GetRelativeEntries(IRelativeDirectoryPath searchLocation, SearchOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
IRelativeDirectoryPath | searchLocation | The relative location from this directory to search. |
SearchOptions | options | The options to use when searching the directory. |
Returns
Type | Description |
---|---|
IEnumerable<IRelativePath> |
GetRelativeEntries(IRelativeDirectoryPath, string, SearchOptions?)
Gets the files/directories that reside in the combination of this directory and the search location, relative to this directory, which match the specified search pattern and search options.
Declaration
IEnumerable<IRelativePath> GetRelativeEntries(IRelativeDirectoryPath searchLocation, string searchPattern, SearchOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
IRelativeDirectoryPath | searchLocation | The relative location from this directory to search. |
string | searchPattern | The pattern that describes the names to search, which can contain wildcards |
SearchOptions | options | The options to use when searching the directory. |
Returns
Type | Description |
---|---|
IEnumerable<IRelativePath> |