NDepend.API Documentation
TrySaveRuleFile(IAbsoluteFilePath,IGroup,QueryPersistenceKind,String) Method
NDepend.Project Namespace > ExtensionMethodsProject Class > TrySaveRuleFile Method : TrySaveRuleFile(IAbsoluteFilePath,IGroup,QueryPersistenceKind,String) Method
The absolute path to the rule file.
The group of code queries and rules, not null only if this method returns true.
The group of code queries and rules, not null only if this method returns true.
If the method returns false, failureReason is not null not empty, and explains in plain-english why code queries and rules haven't been saved to the rule file.
Try save code rules and queries defined in the rule file defined by ruleFilePath.
Syntax

Parameters

ruleFilePath
The absolute path to the rule file.
group
The group of code queries and rules, not null only if this method returns true.
queryPersistenceKind
The group of code queries and rules, not null only if this method returns true.
failureReason
If the method returns false, failureReason is not null not empty, and explains in plain-english why code queries and rules haven't been saved to the rule file.

Return Value

true if the rules have been properly saved to the rule file, else returns false.
Requirements

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

See Also

Reference

ExtensionMethodsProject Class
ExtensionMethodsProject Members
Overload List