XmlHttpRequestEventTarget Class

The event handlers of XmlHttpRequest and XmlHttpRequestUpload (https://xhr.spec.whatwg.org/#xmlhttprequesteventtarget).

public abstract class XmlHttpRequestEventTarget : EventTarget
Inheritance
EventTarget XmlHttpRequestEventTarget

Properties

NameDescription
OnAbortGets or sets the event handler of the abort event.
OnErrorGets or sets the event handler of the error event.
OnLoadGets or sets the event handler of the load event.
OnLoadEndGets or sets the event handler of the loadend event.
OnLoadStartGets or sets the event handler of the loadstart event.
OnProgressGets or sets the event handler of the progress event.
OnTimeoutGets or sets the event handler of the timeout event.

Gets or sets the event handler of the abort event.

public Action<Event>? OnAbort { get; set; }

Gets or sets the event handler of the error event.

public Action<Event>? OnError { get; set; }

Gets or sets the event handler of the load event.

public Action<Event>? OnLoad { get; set; }

Gets or sets the event handler of the loadend event.

public Action<Event>? OnLoadEnd { get; set; }

Gets or sets the event handler of the loadstart event.

public Action<Event>? OnLoadStart { get; set; }

Gets or sets the event handler of the progress event.

public Action<Event>? OnProgress { get; set; }

Gets or sets the event handler of the timeout event.

public Action<Event>? OnTimeout { get; set; }