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.RemoveEventHandler

When overridden in a derived class, unbinds the delegate from the component so that the delegate will no longer receive events from the component.

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

Parameters

component
The component that the delegate is bound to.
value
The delegate to unbind from the component.

Remarks

Typically, this method is implemented through reflection.

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

For more information about delegates, see TBD.

See Also

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