Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

abort method

Cancels the current HTTP request.

Syntax


HRESULT retVal = object.abort();

Parameters

This method has no parameters.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

Remarks

IHTMLXMLHttpRequest::abort was introduced in Windows Internet Explorer 7.

The IHTMLXMLHttpRequest::abort method interrupts an asynchronous operation in progress. (Pass VARIANT_TRUE to the varAsync parameter of IHTMLXMLHttpRequest::open to create an asynchronous request.)

Calling IHTMLXMLHttpRequest::abort resets the object; the onreadystatechange event handler is removed, and IHTMLXMLHttpRequest::readyState is changed to 0 (uninitialized).

See also

IHTMLXMLHttpRequest::send

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.