CustomAttributeExtensions.GetCustomAttributes Method

Include Protected Members
Include Inherited Members

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Overload List

Name Description
GetCustomAttributes<(Of <(T>)>)(Assembly) Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.
GetCustomAttributes(Assembly) Retrieves a collection of custom attributes that are applied to a specified assembly.
GetCustomAttributes(MemberInfo) Retrieves a collection of custom attributes that are applied to a specified member.
GetCustomAttributes<(Of <(T>)>)(MemberInfo) Retrieves a collection of custom attributes of a specified type that are applied to a specified member.
GetCustomAttributes(Module) Retrieves a collection of custom attributes that are applied to a specified module.
GetCustomAttributes<(Of <(T>)>)(Module) Retrieves a collection of custom attributes of a specified type that are applied to a specified module.
GetCustomAttributes(ParameterInfo) Retrieves a collection of custom attributes that are applied to a specified parameter.
GetCustomAttributes<(Of <(T>)>)(ParameterInfo) Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.
GetCustomAttributes(Assembly, Type) Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.
GetCustomAttributes<(Of <(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.
GetCustomAttributes(MemberInfo, Boolean) Retrieves a collection of custom attributes that are applied to a specified member, and optionally inspects the ancestors of that member.
GetCustomAttributes(MemberInfo, Type) Retrieves a collection of custom attributes of a specified type that are applied to a specified member.
GetCustomAttributes(Module, Type) Retrieves a collection of custom attributes of a specified type that are applied to a specified module.
GetCustomAttributes(ParameterInfo, Boolean) Retrieves a collection of custom attributes that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
GetCustomAttributes<(Of <(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.
GetCustomAttributes(ParameterInfo, Type) Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.
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.
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

See Also

Reference

CustomAttributeExtensions Class

CustomAttributeExtensions Members

System.Reflection Namespace