CustomAttributeExtensions.GetCustomAttributes<'T> Method (MemberInfo)
Retrieves a collection of custom attributes of a specified type that are applied to a specified member.
Assembly: mscorlib (in mscorlib.dll)
static member GetCustomAttributes<'T when 'T : Attribute> : element:MemberInfo -> IEnumerable<'T>
The member to inspect.
Return ValueType: System.Collections.Generic.IEnumerable<'T>
A collection of the custom attributes that are applied to element and that match T, or an empty collection if no such attributes exist.
The type of attribute to search for.
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1