NDepend.API Documentation
IsViolated Method (IIssuesSet)
NDepend.Issue Namespace > IIssuesSet Interface : IsViolated Method
The rule on which to get the is-violated value.
Gets a value that indicates if the rule is violated in the context of this issues-set.
Syntax
bool IsViolated( 
   IRule rule
)

Parameters

rule
The rule on which to get the is-violated value.
Exceptions
ExceptionDescription
Thrown if this issue set doesn't contain the rule.
Remarks
The returned value is the value of NDepend.CodeQuery.IQueryExecutionSuccessResult.NDepend.CodeQuery.IQueryExecutionSuccessResult.IsARuleViolated of the NDepend.CodeQuery.IQueryExecutionSuccessResult object used when calling the method NDepend.CodeQuery.ExtensionMethodsQuery.GetIssues.
This property getter has a constant time complexity.
Requirements

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

See Also

Reference

IIssuesSet Interface
IIssuesSet Members