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
relativePathstringrelativeRootstringcomparisonStringComparison