Export (0) Print
Expand All

CustomAttributeExtensions.GetCustomAttribute Method

.NET Framework 4.5

Retrieves a custom attribute that is 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 GetCustomAttribute<T>(Assembly) Retrieves a custom attribute of a specified type that is applied to a specified assembly.
Public method Static member GetCustomAttribute<T>(MemberInfo) Retrieves a custom attribute of a specified type that is applied to a specified member.
Public method Static member GetCustomAttribute<T>(Module) Retrieves a custom attribute of a specified type that is applied to a specified module.
Public method Static member GetCustomAttribute<T>(ParameterInfo) Retrieves a custom attribute of a specified type that is applied to a specified parameter.
Public method Static member GetCustomAttribute(Assembly, Type) Retrieves a custom attribute of a specified type that is applied to a specified assembly.
Public method Static member GetCustomAttribute<T>(MemberInfo, Boolean) Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.
Public method Static member GetCustomAttribute(MemberInfo, Type) Retrieves a custom attribute of a specified type that is applied to a specified member.
Public method Static member GetCustomAttribute(Module, Type) Retrieves a custom attribute of a specified type that is applied to a specified module.
Public method Static member GetCustomAttribute<T>(ParameterInfo, Boolean) Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public method Static member GetCustomAttribute(ParameterInfo, Type) Retrieves a custom attribute of a specified type that is applied to a specified parameter.
Public method Static member GetCustomAttribute(MemberInfo, Type, Boolean) Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.
Public method Static member GetCustomAttribute(ParameterInfo, Type, Boolean) Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Top
Show:
© 2014 Microsoft