It is often useful to indicate that a warning is non-applicable; this informs the developer, and others who might review the code later, that a warning was investigated and then either suppressed or ignored.
In Source Suppression of warnings is implemented through custom attributes. To suppress a warning, add the attribute SuppressMessage to the source code as shown in the following example:
[SuppressMessage("AdventureWorks.Rules", "AW14441")]
Public class MyClass
{
// code
}
For more information, see Suppress Warnings Using SuppressMessage Attribute.