When overridden in a derived class, retrieves the MethodInfo object for removing a method of the event, specifying whether to return non-public methods.
A System.Reflection.MethodInfo object representing the method used to remove an event handler delegate from the event source.
Type Reason MethodAccessException nonPublic is true, the method used to remove an event handler delegate is non-public, and the caller does not have permission to reflect on non-public methods.
Typically, the method has the following signature format:
remove_<EventName>(<EventHandlerType> handler)
Type | Reason |
---|---|
System.Security.Permissions.ReflectionPermission | Requires permission to reflect non-public members of a type in loaded assemblies. See System.Security.Permissions.ReflectionPermissionFlag.TypeInformation. |