NDepend.API Documentation
TryChangeValue Method
NDepend.Project Namespace > IProjectPathVariables Interface : TryChangeValue Method
The path variable name.
The new path variable value.
Try change the value of a path variable.
Syntax

Parameters

pathVariableName
The path variable name.
newPathVariableValue
The new path variable value.
Remarks
Returns false if pathVariableName is NdProjectDir or NdProjectOutputDir.
Returns false if no variable with the name pathVariableName exists.
If this method modifies a state, this method returns true and the event IProject.IProject.SettingsChanged is triggered with the flag ProjectSettings.ProjectSettings.PathVariables activated.
Requirements

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

See Also

Reference

IProjectPathVariables Interface
IProjectPathVariables Members