Method ResolveUnder
- Namespace
- ReportWright.Data
- Assembly
- ReportWright.Data.Abstractions.dll
ResolveUnder(string?, string?, string)
Resolves a relative path under a base directory, or refuses it.
public static string ResolveUnder(string? baseDirectory, string? relativePath, string dataSourceName)
Parameters
baseDirectorystringThe directory the host resolved the data source to.
relativePathstringThe path the report's command text names.
dataSourceNamestringThe data source's name, for the message.
Returns
- string
The full path, inside
baseDirectory.
Exceptions
- DataSourceException
The base directory is not set.
- DataSourceAccessDeniedException
The path is rooted, empty, or leaves the base directory.