Specifies all the elements of the VOS to which it is valid to attach the attribute.
[Visual Basic] Public Enum AttributeTargets [C#] public enum AttributeTargets [C++] public enum AttributeTargets
[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.
AttributeTargets enumeration values may be bitwise or'ed together to get the appropriate combination.
do not use this enumeration. It will be removed in the next release.
Member Name | Description |
---|---|
All | Attribute may be applied to any element. |
Assembly | Attribute may be applied to an assembly. |
Class | Attribute may be applied to a class. |
ClassMembers | Attribute applied to only classes, methods, fields, events, and properties. |
Constructor | Attribute may be applied to a constructor. |
Delegate | Attribute may be applied to a delegate. |
Enum | Attribute may be applied to an enumeration. |
Event | Attribute may be applied to an event. |
Field | Attribute may be applied to a field. |
Interface | Attribute may be applied to an interface. |
Method | Attribute may be applied to a method. |
Module | Attribute may be applied to a module. |
Parameter | Attribute may be applied to a parameter. |
Property | Attribute may be applied to a property. |
ReturnValue | Attribute may be applied to a Return value. |
Struct | Attribute may be applied to a value type. |
Namespace: System
Assembly: mscorlib.dll