enum AttributeTargets { Assembly = 0x0001; Module = 0x0002; Class = 0x0004; Enum = 0x0008; Struct = 0x0010; Constructor = 0x0080; Method = 0x0100; Property = 0x0200; Field = 0x0400; Event = 0x0800; Interface = 0x0020; Parameter = 0x1000; Delegate = 0x1001; ReturnType = 0x1003; All = Assembly | Module | Class | ValueType | Enum | Constructor | Method | Property | Field | Event | Interface | Parameter | Delegate | MulticastDelegate | ReturnType; }
This enum indicates which elements an attribute is allowed to be applied to. See ValidOn for more dertails.