Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
virtual void RemoveEventHandler(
	Object^ component,
	Delegate^ value
) abstract

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft