NDepend.API Documentation
IsARuleViolated Property
NDepend.CodeQuery Namespace > IQueryExecutionSuccessResult Interface : IsARuleViolated Property
Gets a value indicating whether the code query is a rule and is violated.
Syntax
bool IsARuleViolated {get;}
Remarks
this.KindOfCodeQueryExpression returns KindOfCodeQueryExpression.KindOfCodeQueryExpression.Rule if this code query is a code rule. Notice that a IQueryExecutionSuccessResult object can be modified when calling a ExtensionMethodsQuery.ExtensionMethodsQuery.GetIssues overload that takes a suppressedMessage set. In such condition if all issues are suppressed this property can return false although it was returning true before calling GetIssues().
Requirements

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

See Also

Reference

IQueryExecutionSuccessResult Interface
IQueryExecutionSuccessResult Members