System.Reflection.EventInfo.GetAddMethod Method

Returns the method used to add an event handler delegate to the event source.

Syntax

public MethodInfo GetAddMethod ()

Returns

A System.Reflection.MethodInfo object representing the method used to add an event handler delegate to the event source.

Remarks

GetAddMethod initializes and adds the event subscribe method. The AddEventHandler method is used to add an event-handler delegate to the invocation list of an event source.

Requirements

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