PropertyAttributes Enumeration
TOC
Collapse the table of content
Expand the table of content

PropertyAttributes Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Defines the attributes that can be associated with a property.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

No code example is currently available or this language may not be supported.

Member nameDescription
HasDefaultSpecifies that the property has a default value.
NoneSpecifies that no attributes are associated with a property.
Reserved2Reserved.
Reserved3Reserved.
Reserved4Reserved.
ReservedMaskSpecifies a flag reserved for runtime use only.
RTSpecialNameSpecifies that the metadata internal APIs check the name encoding.
SpecialNameSpecifies that the property is special, with the name describing how the property is special.

To get the PropertyAttributes, first get the class Type. From the Type, get the PropertyInfo. From the PropertyInfo, get the Attributes.

The enumerated value is a number representing the bitwise OR of the attributes implemented on the method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft