EventInfo.AddMethod Property

.NET Framework 4.6 and 4.5

Gets the MethodInfo object for the AddEventHandler method of the event, including non-public methods.

Namespace:  System.Reflection
Assemblies:   mscorlib (in mscorlib.dll)
  System.Reflection (in System.Reflection.dll)

public virtual MethodInfo AddMethod { get; }

Property Value

Type: System.Reflection.MethodInfo
The MethodInfo object for the AddEventHandler method.

This property is the equivalent of calling the GetAddMethod with a value of true.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft