CustomAttributeExtensions Class

.NET Framework (current version)
 

Contains static methods for retrieving custom attributes.

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

System.Object
  System.Reflection.CustomAttributeExtensions

public static class CustomAttributeExtensions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(Assembly, Type)

Retrieves a custom attribute of a specified type that is applied to a specified assembly.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(MemberInfo, Type)

Retrieves a custom attribute of a specified type that is applied to a specified member.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(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.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(Module, Type)

Retrieves a custom attribute of a specified type that is applied to a specified module.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(ParameterInfo, Type)

Retrieves a custom attribute of a specified type that is applied to a specified parameter.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(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.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute<T>(Assembly)

Retrieves a custom attribute of a specified type that is applied to a specified assembly.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute<T>(MemberInfo)

Retrieves a custom attribute of a specified type that is applied to a specified member.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute<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.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute<T>(Module)

Retrieves a custom attribute of a specified type that is applied to a specified module.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute<T>(ParameterInfo)

Retrieves a custom attribute of a specified type that is applied to a specified parameter.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute<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.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Assembly)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Assembly, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(MemberInfo)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(MemberInfo, Boolean)

Retrieves a collection of custom attributes that are applied to a specified member, and optionally inspects the ancestors of that member.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(MemberInfo, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(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.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Module)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Module, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(ParameterInfo)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(ParameterInfo, Boolean)

Retrieves a collection of custom attributes that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(ParameterInfo, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(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.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes<T>(Assembly)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes<T>(MemberInfo)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes<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.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes<T>(Module)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes<T>(ParameterInfo)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes<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.

System_CAPS_pubmethodSystem_CAPS_staticIsDefined(Assembly, Type)

Indicates whether custom attributes of a specified type are applied to a specified assembly.

System_CAPS_pubmethodSystem_CAPS_staticIsDefined(MemberInfo, Type)

Indicates whether custom attributes of a specified type are applied to a specified member.

System_CAPS_pubmethodSystem_CAPS_staticIsDefined(MemberInfo, Type, Boolean)

Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors.

System_CAPS_pubmethodSystem_CAPS_staticIsDefined(Module, Type)

Indicates whether custom attributes of a specified type are applied to a specified module.

System_CAPS_pubmethodSystem_CAPS_staticIsDefined(ParameterInfo, Type)

Indicates whether custom attributes of a specified type are applied to a specified parameter.

System_CAPS_pubmethodSystem_CAPS_staticIsDefined(ParameterInfo, Type, Boolean)

Indicates whether custom attributes of a specified type are applied to a specified parameter, and, optionally, applied to its ancestors.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: