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

Parameters

oldPathVariableName
The old path variable name.
newPathVariableName
The new path variable value.
Remarks
Returns false if oldPathVariableName is NdProjectDir or NdProjectOutputDir.
Returns false if no variable with the name oldPathVariableName 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