EventTargetRemoveEventListener Method (String, IEventListener, Boolean)

This method allows the removal of event listeners from the event target. If an is removed from an while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 22.1
public void RemoveEventListener(
	string type,
	IEventListener listener,
	bool useCapture


Type: SystemString

Specifies the event type of the being removed.

Type: Aspose.Html.Dom.EventsIEventListener

The parameter indicates the to be removed.

Type: SystemBoolean
Specifies whether the EventListener being removed was registered as a capturing listener or not. If a listener was registered twice, one with capture and one without, each must be removed separately. Removal of a capturing listener does not affect a non-capturing version of the same listener, and vice versa.


IEventTargetRemoveEventListener(String, IEventListener, Boolean)
See Also