AttributeTargets 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 AttributeTargets
enum class winrt::Windows::Foundation::Metadata::AttributeTargets : uint32_t
public enum AttributeTargets
Public Enum AttributeTargets
var value = Windows.Foundation.Metadata.AttributeTargets.all;
Attributes
System.FlagsAttribute ContractVersionAttribute

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Fields

All All All All All 4294967295

The attribute applies to all programming constructs.

ApiContract ApiContract ApiContract ApiContract ApiContract 8192

The attribute applies to an API contract.

Delegate Delegate Delegate Delegate Delegate 1

The attribute applies to a delegate.

Enum Enum Enum Enum Enum 2

The attribute applies to an enumeration.

Event Event Event Event Event 4

The attribute applies to an event.

Field Field Field Field Field 8

The attribute applies to a field.

Interface Interface Interface Interface Interface 16

The attribute applies to an interface.

InterfaceImpl InterfaceImpl InterfaceImpl InterfaceImpl InterfaceImpl 2048

The attribute applies to an implementation of an interface.

Method Method Method Method Method 64

The attribute applies to a method.

Parameter Parameter Parameter Parameter Parameter 128

The attribute applies to a parameter.

Property Property Property Property Property 256

The attribute applies to a property.

RuntimeClass RuntimeClass RuntimeClass RuntimeClass RuntimeClass 512

The attribute applies to a runtime class.

Struct Struct Struct Struct Struct 1024

The attribute applies to a struct.

Remarks

When programming with .NET, this type is hidden and developers should use System.AttributeTargets.

See also