Windows Dev Center

Expand Minimize

PropertyAttributes Enumeration

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)

public enum PropertyAttributes

Member nameDescription
HasDefaultSpecifies that the property has a default value.
NoneSpecifies that no attributes are associated with a property.
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

© 2015 Microsoft