NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

EventDescriptor.AddEventHandler

When overridden in a derived class, binds the event to the component.

[Visual Basic]
MustOverride Public Sub AddEventHandler( _
   ByVal component As Object, _
   ByVal value As Delegate _
)
[C#]
public abstract void AddEventHandler(
   object component,
   Delegate value
);
[C++]
public: virtual void AddEventHandler(
   Object* component,
   Delegate* value
) = 0;
[JScript]
public abstract function AddEventHandler(
   component : Object,
   value : Delegate
);

Parameters

component
A component that provides events to the delegate.
value
A delegate that represents the method that handles the event.

Remarks

Typically, this method is implemented through reflection.

Notes to Inheritors: When you override this method, it should add the delegate to the component's event list by invoking the appropriate AddOn XXX method.

For more information about delegates, see TBD.

See Also

EventDescriptor Class | EventDescriptor Members | System.ComponentModel Namespace | AddEventHandler