Compartilhar via


Sys.Net.WebRequestExecutor aborted Property

Gets a value indicating whether the request associated with the executor was aborted.

Note

To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.

var aborted = MyExecutor.get_aborted();

Return Value

true if the request associated with the executor was aborted; otherwise, false.

Remarks

When the current instance of the Sys.Net.WebRequestExecutor class is aborted, it must set its state to aborted and it must raise the completed event of the associated request object.

Example

The following example shows how to use the aborted property by using the default XMLHttpExecutor object.

// Check if the executor is aborted.
var execAborted = 
    executor.get_aborted();

See Also

Reference

Sys.Net.WebRequestManager Class

Sys.Net.WebRequest Class

Sys.Net.XMLHttpExecutor Class