Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CustomAttributeExtensions.GetCustomAttributes Method

.NET Framework 4.6 and 4.5

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member GetCustomAttributes<T>(Assembly) Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.
Public method Static member GetCustomAttributes(Assembly) Retrieves a collection of custom attributes that are applied to a specified assembly.
Public method Static member GetCustomAttributes(MemberInfo) Retrieves a collection of custom attributes that are applied to a specified member.
Public method Static member GetCustomAttributes<T>(MemberInfo) Retrieves a collection of custom attributes of a specified type that are applied to a specified member.
Public method Static member GetCustomAttributes(Module) Retrieves a collection of custom attributes that are applied to a specified module.
Public method Static member GetCustomAttributes<T>(Module) Retrieves a collection of custom attributes of a specified type that are applied to a specified module.
Public method Static member GetCustomAttributes(ParameterInfo) Retrieves a collection of custom attributes that are applied to a specified parameter.
Public method Static member GetCustomAttributes<T>(ParameterInfo) Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.
Public method Static member GetCustomAttributes(Assembly, Type) Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.
Public method Static member GetCustomAttributes<T>(MemberInfo, Boolean) Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.
Public method Static member GetCustomAttributes(MemberInfo, Boolean) Retrieves a collection of custom attributes that are applied to a specified member, and optionally inspects the ancestors of that member.
Public method Static member GetCustomAttributes(MemberInfo, Type) Retrieves a collection of custom attributes of a specified type that are applied to a specified member.
Public method Static member GetCustomAttributes(Module, Type) Retrieves a collection of custom attributes of a specified type that are applied to a specified module.
Public method Static member GetCustomAttributes(ParameterInfo, Boolean) Retrieves a collection of custom attributes that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public method Static member GetCustomAttributes<T>(ParameterInfo, Boolean) Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public method Static member GetCustomAttributes(ParameterInfo, Type) Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.
Public method Static member GetCustomAttributes(MemberInfo, Type, Boolean) Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.
Public method Static member GetCustomAttributes(ParameterInfo, Type, Boolean) Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Top
Show:
© 2015 Microsoft