AttributeTargets Enumeration

Specifies the programming construct to which an attribute applies.

Syntax

[FlagsAttribute]
public enum class AttributeTargets  

Members

Member Value Description
All 4294967295  The attribute applies to all programming constructs.
Delegate The attribute applies to a delegate.
Enum The attribute applies to an enumeration.
Event The attribute applies to an event.
Field The attribute applies to a field.
Interface 16  The attribute applies to an interface.
InterfaceImpl 2048  The attribute applies to an implementation of an interface.
Method 64  The attribute applies to a method.
Parameter 128  The attribute applies to a parameter.
Property 256  The attribute applies to a property.
RuntimeClass 512  The attribute applies to a runtime class.
Struct 1024  The attribute applies to a struct.

Requirements

Namespace: Windows.Foundation.Metadata

Metadata: windows.winmd

See also

Reference

Windows.Foundation.Metadata Namespace