AttributeTargets enumeration

Applies to Windows and Windows Phone

Specifies the programming construct to which an attribute applies.

.NET:  This type appears as System.AttributeTargets.

Syntax


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

Attributes

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

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.

Remarks

When building Windows Store apps with the Microsoft .NET Framework, this type is hidden and developers should use System.AttributeTargets.

Requirements

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

See also

AttributeUsageAttribute

 

 

Show:
© 2014 Microsoft