System.Runtime.InteropServices._MethodBase.GetCustomAttributes Method

Provides COM objects with version-independent access to the System.Reflection.MemberInfo.GetCustomAttributes(bool) method.

Syntax

public object[] GetCustomAttributes (bool inherit)

Parameters

inherit
true to search this member's inheritance chain to find the attributes; otherwise, false.

Returns

An array that contains all the custom attributes, or an array with zero (0) elements if no attributes are defined.

Remarks

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

The System.Reflection.MemberInfo.GetCustomAttributes(bool) method returns an array containing all the custom attributes.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0