Name

FlagsAttribute

Synopsis

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 method FlagsAttribute();  
}

Hierarchy

ObjectAttributeFlagsAttribute

Valid On

Enum

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.