Table of Contents

Method GetRelativePathUnderRoot

Namespace
Oscova.Agents.Utils
Assembly
Oscova.Agents.dll

GetRelativePathUnderRoot(string, string, StringComparison)

Returns a path relative to a named root, or null when it lies outside that root.

public static string? GetRelativePathUnderRoot(string relativePath, string relativeRoot, StringComparison comparison)

Parameters

relativePath string
relativeRoot string
comparison StringComparison

Returns

string?