AttributeTargets
AttributeTargets
AttributeTargets
AttributeTargets
Enum
Definition
Specifies the programming construct to which an attribute applies.
.NET This type appears as System.AttributeTargets.
This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.
public : enum class AttributeTargetspublic enum AttributeTargetsPublic Enum AttributeTargets// You can use this enum in JavaScript.
- Attributes
-
System.FlagsAttribute ContractVersionAttribute
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.FoundationContract (introduced v1)
|
Fields
| All All All All | The attribute applies to all programming constructs. |
| ApiContract ApiContract ApiContract ApiContract | The attribute applies to an API contract. |
| Delegate Delegate Delegate Delegate | The attribute applies to a delegate. |
| Enum Enum Enum Enum | The attribute applies to an enumeration. |
| Event Event Event Event | The attribute applies to an event. |
| Field Field Field Field | The attribute applies to a field. |
| Interface Interface Interface Interface | The attribute applies to an interface. |
| InterfaceImpl InterfaceImpl InterfaceImpl InterfaceImpl | The attribute applies to an implementation of an interface. |
| Method Method Method Method | The attribute applies to a method. |
| Parameter Parameter Parameter Parameter | The attribute applies to a parameter. |
| Property Property Property Property | The attribute applies to a property. |
| RuntimeClass RuntimeClass RuntimeClass RuntimeClass | The attribute applies to a runtime class. |
| Struct Struct Struct Struct | The attribute applies to a struct. |
Remarks
When programming with .NET, this type is hidden and developers should use System.AttributeTargets.