Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 3.0
Tools
Development Tools
FxCop
FxCop Warnings
Usage Warnings
 Literals should be spelled correctl...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio Team System
Literals should be spelled correctly

This warning is supported in the stand-alone version of FxCop only. It is not supported in Code Analysis, which is integrated into Visual Studio.

TypeName

LiteralsShouldBeSpelledCorrectly

CheckId

CA2204

Category

Microsoft.Usage

Breaking Change

NonBreaking

A literal string in a method body contains one or more words that are not recognized by the Microsoft spelling checker library.

This rule parses the literal string into words, tokenizing compound words, and checks the spelling of each word/token. For information about the parsing algorithm, see Identifiers should be spelled correctly.

This rule only fires if the literal string passed to a method which does not require a localized parameter. The logic for determining this is described in the rule topic Do not pass literals as localized parameters.

By default, the English (en) version of the spelling checker is used.

To fix a violation of this rule, correct the spelling of the word or add the word to a custom dictionary. For information about how to use custom dictionaries, see Identifiers should be spelled correctly.

Do not exclude a warning from this rule. Correctly spelled words reduce the learning curve required for new software libraries.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker