SuppressMessageAttribute Constructor
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the SuppressMessageAttribute class, specifying the category of the static analysis tool and the identifier for an analysis rule.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- category
- Type: System.String
The category for the attribute.
- checkId
- Type: System.String
The identifier of the analysis tool rule the attribute applies to.
The category parameter value is specific to the analysis tool and categorizes the rule identified by the checkId parameter. When concatenated, the two parameters form a unique identifier for the rule.
Note: |
|---|
The preprocessor symbol "CODE_ANALYSIS" must be defined for this attribute to be effective. The absence of the preprocessor symbol results in the attribute not being applied. |
Note: