Method RemoveEventListenerNs
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Dom.dll
RemoveEventListenerNs(string, string, EventListener, bool)
This method allows the removal of event listeners from a specified group or the default group.
public void RemoveEventListenerNs(string namespaceUri, string type, EventListener listener, bool useCapture)
Parameters
namespaceUri
stringSpecifies the IEvent.NamespaceUri associated with the event for which the user registered the event listener.
type
stringSpecifies the IEvent.Type associated with the event for which the user registered the event listener.
listener
EventListenerThe EventListener parameter indicates the EventListener to be removed.
useCapture
boolSpecifies whether the EventListener being removed was registered for the capture phase or not. If a listener was registered twice, once for the capture phase and once for the target and bubbling phases, each must be removed separately. Removal of an event listener registered for the capture phase does not affect the same event listener registered for the target and bubbling phases, and vice versa.
Remarks
Calling RemoveEventListenerNs with arguments which do not identify any currently registered EventListener on the EventTarget has no effect.