PropertyAttributes Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
<ComVisibleAttribute(True)> _
<FlagsAttribute> _
Public Enumeration PropertyAttributes
[ComVisibleAttribute(true)]
[FlagsAttribute]
public enum PropertyAttributes
Members
Member name | Description | |
---|---|---|
None | Specifies that no attributes are associated with a property. | |
SpecialName | Specifies that the property is special, with the name describing how the property is special. | |
ReservedMask | Specifies a flag reserved for runtime use only. | |
RTSpecialName | Specifies that the metadata internal APIs check the name encoding. | |
HasDefault | Specifies that the property has a default value. | |
Reserved2 | Reserved. | |
Reserved3 | Reserved. | |
Reserved4 | Reserved. |
Remarks
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.
Version Information
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
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.