NDepend.API Documentation
TryGetAbsolutePathFrom Method (IRelativeDirectoryPath)
NDepend.Path Namespace > IRelativeDirectoryPath Interface : TryGetAbsolutePathFrom Method
The pivot directory from which the absolute path is computed.
A new absolute directory path representing this relative directory resolved from pivotDirectory.
If this method returns false, contains a plain-english message explaining why it failed.
Resolve this relative directory from pivotDirectory. If this directory is "..\Dir2" and pivotDirectory is "C:\Dir1\Dir3", the returned absolute directory is "C:\Dir1\Dir2".
Syntax

Parameters

pivotDirectory
The pivot directory from which the absolute path is computed.
absoluteDirectoryPath
A new absolute directory path representing this relative directory resolved from pivotDirectory.
failureReason
If this method returns false, contains a plain-english message explaining why it failed.

Return Value

true if the operation works, else returns false.
Remarks
The returned file nor pivotDirectory need to exist for this operation to complete properly.
Requirements

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

See Also

Reference

IRelativeDirectoryPath Interface
IRelativeDirectoryPath Members