NDepend.API Documentation
TryRemove Method (IProjectPathVariables)
NDepend.Project Namespace > IProjectPathVariables Interface : TryRemove Method
The path variable to remove, name.
Try remove a path variable from this project collection of path variables.
Syntax

Parameters

pathVariableName
The path variable to remove, name.
Remarks
Returns false if no path variable with pathVariableName and read-write access right, is defined.
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, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

IProjectPathVariables Interface
IProjectPathVariables Members