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 member.

Syntax

public static IList<CustomAttributeData> GetCustomAttributes (MemberInfo target)

Parameters

target
The member 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 member.

Remarks

This method overload gets custom attribute data for types, nested types, and type members, because the Type class and the classes in the System.Reflection namespace that represent type members all derive from System.Reflection.MemberInfo.

Requirements

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