Attribute.GetCustomAttributes Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves an array of the custom attributes applied to an assembly, module, type member, or method parameter.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Assembly)

Retrieves an array of the custom attributes applied to an assembly. A parameter specifies the assembly.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Assembly, Boolean)

Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and an ignored search option.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Assembly, Type)

Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Assembly, Type, Boolean)

Retrieves an array of the custom attributes 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_staticGetCustomAttributes(MemberInfo)

Retrieves an array of the custom attributes applied to a member of a type. A parameter specifies the member.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(MemberInfo, Boolean)

Retrieves an array of the custom attributes 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_staticGetCustomAttributes(MemberInfo, Type)

Retrieves an array of the custom attributes 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_staticGetCustomAttributes(MemberInfo, Type, Boolean)

Retrieves an array of the custom attributes 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_staticGetCustomAttributes(Module)

Retrieves an array of the custom attributes applied to a module. A parameter specifies the module.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Module, Boolean)

Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and an ignored search option.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Module, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(Module, Type, Boolean)

Retrieves an array of the custom attributes 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_staticGetCustomAttributes(ParameterInfo)

Retrieves an array of the custom attributes applied to a method parameter. A parameter specifies the method parameter.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(ParameterInfo, Boolean)

Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and whether to search ancestors of the method parameter.

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(ParameterInfo, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCustomAttributes(ParameterInfo, Type, Boolean)

Retrieves an array of the custom attributes 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: