Interface ISuppressMessage
Represents a valid usage of SuppressMessageAttribute in source code with the category "NDepend".
public interface ISuppressMessage
- Extension Methods
Remarks
Instances of this interfaces are produced at analysis time.
They can be obtained from IAnalysisResult.SuppressedMessages.
Properties (4)
AttributeTag
The attribute tag corresponding to this usage of SuppressMessageAttribute.
IAttributeTag AttributeTag { get; }
Property Value
CodeElement
The code element on which to suppress issues.
ICodeElement CodeElement { get; }
Property Value
Remarks
Depending on the value of Scope, issues can be suppressed only for this code-element, or for child of this code-element.
RuleIdOrCategory
Gets the rule-id or rule category that the corresponding usage of SuppressMessageAttribute is relying on.
RuleIdOrCategory RuleIdOrCategory { get; }
Property Value
Scope
The scope of code element(s) on which to suppress issues.
SuppressMessageScope Scope { get; }
Property Value
Remarks
If the returned value is SuppressMessageScope.ThisOnly, issues are suppressed only for ISuppressMessage.CodeElement and not for any of its child code element.
Else issues are suppressed eventually for ISuppressMessage.CodeElement (if it is matched by the scope value) and the child elements defined by the scope.