Expand Minimize

PropertyAttributes Enumeration

July 28, 2014

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)

[FlagsAttribute]
public enum PropertyAttributes

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:
© 2014 Microsoft