System.Reflection.CustomAttributeData.GetCustomAttributes Method

Returns a list of System.Reflection.CustomAttributeData objects representing data about the attributes that have been applied to the target parameter.

Syntax

public static IList<CustomAttributeData> GetCustomAttributes (ParameterInfo target)

Parameters

target
The parameter whose attribute data is to be retrieved.

Returns

A list of objects that represent data about the attributes that have been applied to the target parameter.

Remarks

This method provides an alternative to the erload:System.Reflection.ParameterInfo.GetCustomAttributes method that can always be used in the Reflection-only context.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0