Method GetRelativeFiles
GetRelativeFiles(IRelativeDirectoryPath, SearchOptions?)
Gets the files that reside in the combination of this directory and the search location, relative to this directory, which match the specified search options.
Declaration
IEnumerable<IRelativeFilePath> GetRelativeFiles(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<IRelativeFilePath> |
GetRelativeFiles(IRelativeDirectoryPath, string, SearchOptions?)
Gets the child files 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<IRelativeFilePath> GetRelativeFiles(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<IRelativeFilePath> |