System.Reflection.ParameterInfo.GetCustomAttributes Method

Gets all the custom attributes defined on this parameter.

Syntax

public virtual object[] GetCustomAttributes (bool inherit)

Parameters

inherit
This argument is ignored for objects of this type. See Remarks.

Returns

An array that contains all the custom attributes applied to this parameter.

Remarks

This method ignores the inherit parameter. To search the inheritance chain for attributes on parameters, use the appropriate overloads of the Attribute.GetCustomAttributes(Assembly) method.

Requirements

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