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

Parameters

filePath
The rule file path.

Return Value

false if there is no rule file with IRuleFileRef.IRuleFileRef.Path equals to filePath, else returns true.
Remarks
If this method removes a rule file, the event IProject.IProject.SettingsChanged is triggered with the flag ProjectSettings.ProjectSettings.RuleFilesRef_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

IProjectRuleFiles Interface
IProjectRuleFiles Members