Retrieves the MethodInfo object for "removing" a method of the event represented by this instance with the given parameter count and modifier bit map.
[Visual Basic] Overloads MustOverride Public Function GetRemoveMethod( _ ByVal nonPublic As Boolean _ ) As MethodInfo [C#] public abstract MethodInfo GetRemoveMethod( bool nonPublic ); [C++] public: virtual MethodInfo* GetRemoveMethod( bool nonPublic ) = 0; [JScript] public abstract function GetRemoveMethod( nonPublic : Boolean ) : MethodInfo;
Retrieves a MethodInfo object that you call to unsubscribe to an event.
Read-only.
The GetRemoveMethod method will return the unsubscribed method as a Boolean.
Typically, the method has hte following signature:
public void AddOn<EventName>(<EventHandlerType>hander)
EventInfo Class | EventInfo Members | System.Reflection Namespace | EventInfo.GetRemoveMethod Overload List | MethodInfo