Export (0) Print
Expand All
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)

'Declaration
<ComVisibleAttribute(True)> _
<FlagsAttribute> _
Public Enumeration PropertyAttributes

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

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft