GetCustomAttribute Method

CustomAttributeExtensions.GetCustomAttribute Method

.NET Framework (current version)
 

Retrieves a custom attribute that is applied to a specified element.

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

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.

Return to top
Show:
© 2016 Microsoft