Enum
AttributeTargets
enum AttributeTargets
Module: System
Assembly: System.Runtime.dll
Source file: AttributeTargets.rvn
Inheritance: Object → ValueType → Enum → AttributeTargets
Identifies declaration categories to which an attribute may be applied.
Constants
16 items
Static member:
All: AttributeTargets
All declaration categories (32767).
Static member:
Assembly: AttributeTargets
Identifies the Assembly declaration target (1).
Static member:
Class: AttributeTargets
Identifies the Class declaration target (4).
Static member:
Constructor: AttributeTargets
Identifies the Constructor declaration target (32).
Static member:
Delegate: AttributeTargets
Identifies the Delegate declaration target (4096).
Static member:
Enum: AttributeTargets
Identifies the Enum declaration target (16).
Static member:
Event: AttributeTargets
Identifies the Event declaration target (512).
Static member:
Field: AttributeTargets
Identifies the Field declaration target (256).
Static member:
GenericParameter: AttributeTargets
Identifies the GenericParameter declaration target (16384).
Static member:
Interface: AttributeTargets
Identifies the Interface declaration target (1024).
Static member:
Method: AttributeTargets
Identifies the Method declaration target (64).
Static member:
Module: AttributeTargets
Identifies the Module declaration target (2).
Static member:
Parameter: AttributeTargets
Identifies the Parameter declaration target (2048).
Static member:
Property: AttributeTargets
Identifies the Property declaration target (128).
Static member:
ReturnValue: AttributeTargets
Identifies the ReturnValue declaration target (8192).
Static member:
Struct: AttributeTargets
Identifies the Struct declaration target (8).
Fields
1 item
value__: int
No summary available.
Methods
4 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString