Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.