FlagsAttribute

FlagsAttributeCF 1.0, ECMA 1.0, serializable

System (mscorlib.dll)class

This attribute indicates that an enumeration should be treated as a set of on/off flags (i.e., a bit field). Unlike enumerated constants, bit fields can be combined with a bitwise OR operation.

public class FlagsAttribute : Attribute {
// Public Constructors
   public FlagsAttribute( );
}

Hierarchy

Object Attribute FlagsAttribute

Valid On

Enum



    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System