Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Attribute::GetCustomAttribute Method

 

Retrieves a custom attribute of a specified type applied to an assembly, module, type member, or method parameter.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(Assembly^, Type^)

Retrieves a custom attribute applied to a specified assembly. Parameters specify the assembly and the type of the custom attribute to search for.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(Assembly^, Type^, Boolean)

Retrieves a custom attribute applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(MemberInfo^, Type^)

Retrieves a custom attribute applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(MemberInfo^, Type^, Boolean)

Retrieves a custom attribute applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(Module^, Type^)

Retrieves a custom attribute applied to a module. Parameters specify the module, and the type of the custom attribute to search for.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(Module^, Type^, Boolean)

Retrieves a custom attribute applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(ParameterInfo^, Type^)

Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttribute(ParameterInfo^, Type^, Boolean)

Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter.

Return to top
Show:
© 2017 Microsoft