_EventInfo.GetRemoveMethod Method (Boolean)


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

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

MethodInfo GetRemoveMethod(
	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 remove an event-handler delegate from the event source.

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

The GetRemoveMethod method retrieves the MethodInfo object for removing a method of the event and specifies whether to return non-public methods.

.NET Framework
Available since 1.1
Return to top