System.Reflection.CustomAttributeExtensions.GetCustomAttributes Method

Retrieves a collection of custom attributes that are applied to a specified member.

Syntax

public static IEnumerable<Attribute> GetCustomAttributes (this MemberInfo element)

Parameters

element
The member to inspect.

Returns

A collection of the custom attributes that are applied to element, or an empty collection if no such attributes exist.

Remarks

Documentation for this section has not yet been entered.

Requirements

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