NDepend.API Documentation
CanGetRelativePathFrom(IAbsoluteDirectoryPath) Method
NDepend.Path Namespace > IAbsolutePath Interface > CanGetRelativePathFrom Method : CanGetRelativePathFrom(IAbsoluteDirectoryPath) Method
The pivot directory from which the absolute path should be computed.
Gets a value indicating whether a relative path representing this path can be computed from pivotDirectory.
Syntax
bool CanGetRelativePathFrom( 
   IAbsoluteDirectoryPath pivotDirectory
)

Parameters

pivotDirectory
The pivot directory from which the absolute path should be computed.

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