Microsoft KB Archive/319348

= DOC: Correction: FlagsAttribute Does Not Allow Bitwise Comparison When ConnectionState Is Closed =

Article ID: 319348

Article Last Modified on 8/7/2003

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft .NET Framework Class Libraries 1.1

-



This article was previously published under Q319348



SUMMARY
The System.Data namespace contains an enumeration that is named ConnectionState that describes the current state of the connection to a data source.

The &quot;ConnectionState Enumeration&quot; topic on the Microsoft Developer Network (MSDN) states the following:

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

The statement should read as follows:

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of all its member values except for Closed (which is zero).

For additional information, visit the following Microsoft Web site:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataConnectionStateClassTopic.asp

