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

Parameters

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

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