NDepend.API Documentation
TryResolve(IEnumerable<KeyValuePair<String,String>>,IAbsoluteFilePath,IReadOnlyList<String>) Method
NDepend.Path Namespace > IVariableFilePath Interface > TryResolve Method : TryResolve(IEnumerable<KeyValuePair<String,String>>,IAbsoluteFilePath,IReadOnlyList<String>) Method
It is the sequence of pairs [variable name/variable value] used to resolve the path.
It is the absolute file path resolved obtained if this method returns VariablePathResolvingStatus.VariablePathResolvingStatus.Success.
This list contains one or several variables names unresolved, if this method returns VariablePathResolvingStatus.VariablePathResolvingStatus.ErrorUnresolvedVariable.
Returns VariablePathResolvingStatus.VariablePathResolvingStatus.Success if AllVariables of this path can be resolved from variablesValues and the path can be resolved into a drive letter or a UNC absolute file path.
Syntax

Parameters

variablesValues
It is the sequence of pairs [variable name/variable value] used to resolve the path.
pathFileResolved
It is the absolute file path resolved obtained if this method returns VariablePathResolvingStatus.VariablePathResolvingStatus.Success.
unresolvedVariables
This list contains one or several variables names unresolved, if this method returns VariablePathResolvingStatus.VariablePathResolvingStatus.ErrorUnresolvedVariable.
Requirements

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

See Also

Reference

IVariableFilePath Interface
IVariableFilePath Members
Overload List