Table of Contents

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

baseDirectory string

The directory the host resolved the data source to.

relativePath string

The path the report's command text names.

dataSourceName string

The 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.