Do not use banned APIs

TypeName DoNotUseBannedApis
CheckId BC1005
Category Usage
Breaking DependsOnFix


Code was found to use a banned API.

Rule description

This rule screens for usage of APIs whose use has been banned/discouraged. The rule allows configuration of a list of types and a list of members for which to screen. By default, the rule will screen for the following:

How to fix violations

Remove use of the API from your code.

When to exclude warnings

Suppress violations only if the usage scenario is approved by your organization. (If you do not agree with the default banned API list, configure to rule to apply your preferences instead of suppressing violations that you consider to be false positives.)

Last edited Feb 20, 2010 at 3:26 AM by calinoiu, version 1


No comments yet.