System.Runtime.InteropServices._EventInfo.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 a 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 retrieves the System.Reflection.MethodInfo object for the System.Reflection.EventInfo.AddEventHandler(object, Delegate) method of the event and specifies whether to return non-public methods

Requirements

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