Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetCustomAttribute Method

Attribute.GetCustomAttribute Method

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

Name Description
Attribute.GetCustomAttribute (Assembly, Type) Retrieves a custom attribute applied to an assembly. Parameters specify the assembly and the type of the custom attribute to search for.

Supported by the .NET Compact Framework.

Attribute.GetCustomAttribute (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.

Supported by the .NET Compact Framework.

Attribute.GetCustomAttribute (Module, Type) Retrieves a custom attribute applied to a module. Parameters specify the module, and the type of the custom attribute to search for.

Supported by the .NET Compact Framework.

Attribute.GetCustomAttribute (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.

Supported by the .NET Compact Framework.

Attribute.GetCustomAttribute (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.

Supported by the .NET Compact Framework.

Attribute.GetCustomAttribute (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.

Supported by the .NET Compact Framework.

Attribute.GetCustomAttribute (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.

Supported by the .NET Compact Framework.

Attribute.GetCustomAttribute (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.

Supported by the .NET Compact Framework.

Community Additions

ADD
Show:
© 2015 Microsoft