NDepend.API Documentation
IsViolated Method (ExtensionMethodsCQLinqIssuesSet)
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqIssuesSet Class : 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
[Extension()]
public static bool IsViolated( 
   IRule rule
)

Parameters

rule
The rule on which to get the is-violated value.
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.Issue.IIssuesSet.NDepend.Issue.IIssuesSet.IsViolated must be called instead.
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

ExtensionMethodsCQLinqIssuesSet Class
ExtensionMethodsCQLinqIssuesSet Members