class SuppressMessageAttribute
in global :: System . Diagnostics . CodeAnalysis
Suppresses reporting of a specific static analysis tool rule violation, allowing multiple suppressions on a single code artifact.
public SuppressMessageAttribute( string category, string checkId )
Initializes a new instance of the class, specifying the category of the static analysis tool and the identifier for an analysis rule.
categoryThe category for the attribute.checkIdThe identifier of the analysis tool rule the attribute applies to.
public string Category { get; }
Gets the category identifying the classification of the attribute.
- Returns The category identifying the attribute.
public string CheckId { get; }
Gets the identifier of the static analysis tool rule to be suppressed.
- Returns The identifier of the static analysis tool rule to be suppressed.
public string Justification { get; set; }
Gets or sets the justification for suppressing the code analysis message.
- Returns The justification for suppressing the message.
public string MessageId { get; set; }
Gets or sets an optional argument expanding on exclusion criteria.
- Returns A string containing the expanded exclusion criteria.
public string Scope { get; set; }
Gets or sets the scope of the code that is relevant for the attribute.
- Returns The scope of the code that is relevant for the attribute.
public string Target { get; set; }
Gets or sets a fully qualified path that represents the target of the attribute.
- Returns A fully qualified path that represents the target of the attribute.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public object TypeId { get; }
😔 No documentation found.
public bool Match( object obj )
😔 No documentation found.
public bool IsDefaultAttribute( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.