EventDescriptor::AddEventHandler Method (Object^, Delegate^)
When overridden in a derived class, binds the event to the component.
Assembly: System (in System.dll)
Parameters
- component
-
Type:
System::Object^
A component that provides events to the delegate.
- value
-
Type:
System::Delegate^
A delegate that represents the method that handles the event.
Typically, this method is implemented through reflection. For more information about reflection, 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 add the delegate to the component's event list by invoking the appropriate add_myHandler method.
Available since 1.1
AddEventHandler
EventDescriptor Class
System.ComponentModel Namespace