NDepend.API Documentation
CanGetAbsolutePathFrom(IAbsoluteDirectoryPath,String) Method
NDepend.Path Namespace > IRelativePath Interface > CanGetAbsolutePathFrom Method : CanGetAbsolutePathFrom(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 this relative path can be resolved 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 this relative path can be resolved from pivotDirectory, else returns false.
Remarks
An absolute path cannot be resolved for example if pivotDirectory is "C:\Dir1" and this relative path is "..\..\Dir2".
Requirements

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

See Also

Reference

IRelativePath Interface
IRelativePath Members
Overload List