NDepend.API Documentation
CanGetRelativePathFrom(IAbsoluteDirectoryPath,String) Method
NDepend.Path Namespace > IAbsolutePath Interface > CanGetRelativePathFrom Method : CanGetRelativePathFrom(IAbsoluteDirectoryPath,String) Method
The pivot directory from which the absolute path should be computed.
If this method return false, it contains the plain-english description of the cause of this failure.
Gets a value indicating whether a relative path representing this path can be computed from pivotDirectory.
Syntax

Parameters

pivotDirectory
The pivot directory from which the absolute path should be computed.
failureReason
If this method return false, it contains the plain-english description of the cause of this failure.

Return Value

true if a relative path representing this path can be computed from pivotDirectory, else returns false.
Remarks
A relative path cannot be computed if pivotDirectory is not on the same drive as this absolute path's drive.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IAbsolutePath Interface
IAbsolutePath Members
Overload List