NDepend.API Documentation
CodeRuleAttribute Class Members
Properties  Methods 


NDepend.Attributes Namespace : CodeRuleAttribute Class

The following tables list the members exposed by CodeRuleAttribute.

Public Constructors
 NameDescription
Public ConstructorInitializes a new instance of the CodeRuleAttribute class, from the specified codeRuleString.  
Top
Public Properties
 NameDescription
Public Property Gets or sets a value that indicates whether the code rule is active.  
Public Property Gets the CQLinq or CQL code rule string or query string.  
Public Property Gets or sets a value that indicates whether if the code rule is violated, the code rule matched code elements are listed into the report.  
Public Property Gets or sets a value that indicates whether if the code rule is violated, the code rule matched code elements are shown in a treemap picture embedded into the report.  
Public Property Gets or sets a value that indicates whether if the code rule is violated, the code rule matched code elements statistics are shown into the report.  
Public Property Gets or sets a value that indicates whether the code rule is critical or not.  
Top
Public Methods
 NameDescription
Public MethodOverridden. Returns a value that indicates whether this instance is equal to a specified object.  
Public MethodOverridden. Serves as the default hash function.  
Top
Extension Methods
 NameDescription
Public Extension MethodOverloaded. Gets an enumerable object that contains first element and then elements of elements, in this order.
Public Extension MethodOverloaded. Returns true if this item equals item1 or item2.
Public Extension MethodReturns the newer version of this codeElement object. This method can only be called in a ICQLinqExecutionContext, otherwise the method NDepend.CodeModel.ICompareContext.NDepend.CodeModel.ICompareContext.NewerVersion<T> must be called instead.
Public Extension MethodReturns the older version of this codeElement object. This method can only be called in a ICQLinqExecutionContext, otherwise the method NDepend.CodeModel.ICompareContext.NDepend.CodeModel.ICompareContext.OlderVersion<T> must be called instead.
Public Extension MethodGets an enumerable object that contains only the single element element.
Public Extension MethodIf obj is a numeric primitive type, returns its value converted as double. else returns null.
Top
See Also

Reference

CodeRuleAttribute Class
NDepend.Attributes Namespace
HasAttribute Method
HasAttribute Method
AttributeClassesThatTagMe Property
IsExtractedFromCode Property