System.Reflection.EventInfo.GetRaiseMethod Method

Returns the method that is called when the event is raised.

Syntax

public MethodInfo GetRaiseMethod ()

Returns

The method that is called when the event is raised.

Remarks

This method usually returns null for events declared with the C# event keyword or the Visual Basic Event keyword. This is because the C# and Visual Basic compilers do not generate such a method by default.

Requirements

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