NDepend.API Documentation
TryRemove Method (IProjectGraphFiles)
NDepend.Project Namespace > IProjectGraphFiles Interface : TryRemove Method
The graph file path.
Remove a graph file referenced by this project.
Syntax
bool TryRemove( 
   IFilePath filePath
)

Parameters

filePath
The graph file path.

Return Value

false if there is no graph file with IGraphFileRef.IGraphFileRef.Path equals to filePath, else returns true.
Remarks
If this method removes a graph file, the event IProject.IProject.SettingsChanged is triggered with the flag ProjectSettings.ProjectSettings.GraphFilesRef_Paths activated.
Requirements

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

See Also

Reference

IProjectGraphFiles Interface
IProjectGraphFiles Members