System.Reflection.PropertyInfo.Attributes Property

Gets the attributes for this property.

Syntax

public abstract PropertyAttributes Attributes { get; }

Value

A System.Reflection.PropertyAttributes value that specifies the attributes of the property reflected by the current instance.

Remarks

This property represents the attributes associated with a member. All members have a set of attributes that are defined in relation to the specific type of member. The property attributes let the user know if this property is the default property, a SpecialName property, and so on.

To get the Attributes property, first get the class type. From the type, get the PropertyInfo. From the PropertyInfo, get the attributes.

Requirements

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