Suppress Warnings Using SuppressMessage Attribute
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Suppress Warnings Using SuppressMessage Attribute

It is often useful to indicate that the warning is non-applicable to let the team members know that the code was reviewed and it was determined that the warning should be suppressed. In Source Suppression (ISS) allows a developer to place the code that suppresses a warning close to the warning itself.

In Source Suppression Overview

Learn about In Source Suppression (ISS) and how to use it in your code.

How to: Suppress Warnings Using Menu Item

Learn to use suppress warnings from within the IDE by using the shortcut menu.

© 2015 Microsoft