System.Reflection.PropertyAttributes Enumeration

Defines the attributes that can be associated with a property. These attribute values are defined in corhdr.h.

Syntax

[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum PropertyAttributes

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.

Members

Member NameDescription
HasDefault

Specifies that the property has a default value.

None

Specifies that no attributes are associated with a property.

Reserved2

Reserved.

Reserved3

Reserved.

Reserved4

Reserved.

ReservedMask

Specifies a flag reserved for runtime use only.

RTSpecialName

Specifies that the metadata internal APIs check the name encoding.

SpecialName

Specifies that the property is special, with the name describing how the property is special.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0