Windows Dev Center

AttributeTargets enumeration

Specifies the programming construct to which an attribute applies.

.NET:  This type appears as System.AttributeTargets.

Syntax


var value = Windows.Foundation.Metadata.AttributeTargets.all;

Members

The AttributeTargets enumeration has these members.

MemberValueDescription
All | all4294967295

The attribute applies to all programming constructs.

Delegate | delegate1

The attribute applies to a delegate.

Enum | enum2

The attribute applies to an enumeration.

Event | event4

The attribute applies to an event.

Field | field8

The attribute applies to a field.

Interface | interface16

The attribute applies to an interface.

Method | method64

The attribute applies to a method.

Parameter | parameter128

The attribute applies to a parameter.

Property | property256

The attribute applies to a property.

RuntimeClass | runtimeClass512

The attribute applies to a runtime class.

Struct | struct1024

The attribute applies to a struct.

InterfaceImpl | interfaceImpl2048

The attribute applies to an implementation of an interface.

ApiContract | apiContract8192

Remarks

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

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

Windows.Foundation.Metadata
Windows::Foundation::Metadata [C++]

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation.Metadata
Windows::Foundation::Metadata [C++]

Metadata

Windows.winmd

Attributes

[Flags()]
[Version(0x06020000)]

See also

AttributeUsageAttribute

 

 

Show:
© 2015 Microsoft