Mono Class Library: System.Attribute Overview | Members

System.Attribute.GetCustomAttributes Method

Returns an array of all custom attributes in the metadata for the specified parameter.

public static Attribute[] GetCustomAttributes (System.Reflection.ParameterInfo element)

Parameters

element
A System.Reflection.ParameterInfo instance.

Returns

A Attribute array containing all custom attributes that are applied to element. The array includes any inherited custom attributes. Returns an empty array if no custom attributes were found in the metadata for element .

Exceptions

TypeReason
ArgumentNullExceptionelement is null.

Remarks

Documentation for this section has not yet been entered.

Requirements

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