System.Runtime.InteropServices._EventInfo.GetRaiseMethod Method

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

Syntax

public System.Reflection.MethodInfo GetRaiseMethod (bool nonPublic)

Parameters

nonPublic
true to return non-public methods; otherwise, false.

Returns

The System.Reflection.MethodInfo object that was called when the event was raised.

Remarks

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

The System.Reflection.EventInfo.GetRaiseMethod(bool) method returns the method that is called when the event is raised 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