System.Reflection.Emit.PropertyBuilder.GetCustomAttributes Method

Returns an array of all the custom attributes for this property.

Syntax

public override object[] GetCustomAttributes (bool inherit)

Parameters

inherit
If true, walks up this property's inheritance chain to find the custom attributes

Returns

An array of all the custom attributes.

Remarks

Reflect on the property's parent type using Type.GetType or Assembly.GetType, retrieve the Reflection property object from the type, and call PropertyInfo.GetCustomAttributes.

Requirements

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