ComAwareEventInfo.GetRemoveMethod Method (Boolean)

.NET Framework (current version)

When overridden in a derived class, retrieves the MethodInfo object for removing a method of the event.

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

public override MethodInfo GetRemoveMethod(
	bool nonPublic


Type: System.Boolean

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

Return Value

Type: System.Reflection.MethodInfo

The method that was used to remove an event handler delegate from the event source.

Exception Condition

nonPublic is true and the method used to add an event handler delegate is non-public, but the caller does not have permission to reflect on non-public methods.


when invoked late-bound through mechanisms such as Type.InvokeMember. Associated enumeration: ReflectionPermissionFlag.MemberAccess

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Return to top