次の方法で共有


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
Supported by Silverlight for Windows PhoneSupported by Xbox 360 None Specifies that no attributes are associated with a property.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 SpecialName Specifies that the property is special, with the name describing how the property is special.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 ReservedMask Specifies a flag reserved for runtime use only.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 RTSpecialName Specifies that the metadata internal APIs check the name encoding.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 HasDefault Specifies that the property has a default value.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Reserved2 Reserved.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Reserved3 Reserved.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 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.

See Also

Reference