GetAddMethod Method (Boolean)
Collapse the table of content
Expand the table of content

_EventInfo.GetAddMethod Method (Boolean)


Provides COM objects with version-independent access to the GetAddMethod method.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

MethodInfo GetAddMethod(
	bool nonPublic


Type: System.Boolean

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

Return Value

Type: System.Reflection.MethodInfo

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

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

The GetAddMethod method retrieves the MethodInfo object for the AddEventHandler method of the event and specifies whether to return non-public methods

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft