Enum AttributeTargets
- Namespace
- System
- Assembly
- mscorlib.dll
Specifies the application elements on which it is valid to apply an attribute.
[Flags]
public enum AttributeTargets
Fields
All = Assembly | Module | Class | Struct | Enum | Constructor | Method | Property | Field | Event | Interface | Parameter | Delegate | ReturnValueAttribute can be applied to any application element.
Assembly = 1Attribute can be applied to an assembly.
Class = 4Attribute can be applied to a class.
Constructor = 32Attribute can be applied to a constructor.
Delegate = 4096Attribute can be applied to a delegate.
Enum = 16Attribute can be applied to an enumeration.
Event = 512Attribute can be applied to an event.
Field = 256Attribute can be applied to a field.
Interface = 1024Attribute can be applied to an interface.
Method = 64Attribute can be applied to a method.
Module = 2Attribute can be applied to a module.
Parameter = 2048Attribute can be applied to a parameter.
Property = 128Attribute can be applied to a property.
ReturnValue = 8192Attribute can be applied to a return value.
Struct = 8Attribute can be applied to a structure; that is, a value type.