EventDescriptor::RemoveEventHandler Method (Object^, Delegate^)
When overridden in a derived class, unbinds the delegate from the component so that the delegate will no longer receive events from the component.
Assembly: System (in System.dll)
Parameters
- component
-
Type:
System::Object^
The component that the delegate is bound to.
- value
-
Type:
System::Delegate^
The delegate to unbind from the component.
Typically, this method is implemented through reflection. For more information, see the topics in Reflection in the .NET Framework.
For more information about delegates, see NIB: Events and Delegates.
Notes to Inheritors:
When you override this method, it should remove the delegate from the component's event list by invoking the appropriate remove_myHandler method.
Available since 1.1