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

_Type.GetCustomAttributes Method

Provides COM objects with version-independent access to the MemberInfo.GetCustomAttributes method.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method GetCustomAttributes(Boolean) Provides COM objects with version-independent access to the Assembly.GetCustomAttributes method.
Public method GetCustomAttributes(Type, Boolean) Provides COM objects with version-independent access to the MemberInfo.GetCustomAttributes method.
Top

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The MemberInfo.GetCustomAttributes method returns all attributes applied to this member.

Show:
© 2015 Microsoft