NDepend.API Documentation
TryChangeGraphFileRefPath Method
NDepend.Project Namespace > IProjectGraphFiles Interface : TryChangeGraphFileRefPath Method
The old path of the graph file to override.
The new path of the graph file.
Change the path of a graph file referenced by this project.
Syntax
bool TryChangeGraphFileRefPath( 
   IFilePath filePathOld,
   IFilePath filePathNew
)

Parameters

filePathOld
The old path of the graph file to override.
filePathNew
The new path of the graph file.

Return Value

false if there is no graph file with IGraphFileRef.IGraphFileRef.Path equals to filePathOld.
Remarks
If there is a graph file with IGraphFileRef.IGraphFileRef.Path equals to filePathOld, its path gets overridden by the value filePathNew. If this method modifies the path of 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, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IProjectGraphFiles Interface
IProjectGraphFiles Members