FlagsAttribute

Description

sealed class System.FlagsAttribute

Derived from

Attribute abstract

Indicates that an enumeration can be treated as a bit field; that is, a set of flags.

The following conventions are in place for bit field enumerations:

  • Exactly one item must have the value 0 and should be named None, Unknown or similar.

  • The last item must be a bit field that contain all defined flags and should be named All, Any or similar.

  • The documentation should clearly distinguish between items that represent a single bit and items that represent a bit mask.