We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

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 This Section

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.

Related Sections