IXMLHTTPRequest2::Abort method

Cancels the current HTTP request.

Syntax


HRESULT Abort();

Parameters

This method has no parameters.

Return value

Returns S_OK on success.

Remarks

After a request is aborted, the object representing the request is no longer valid.

This method is not guarantee to cancel a request. The app must still wait for to receive the OnError callback method that indicates the request was successfully aborted or the OnResponseReceived callback method that indicates the request was completed before the abort can be processed.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Version

MSXML 6.0 and later

Header

Msxml6.h

IDL

Msxml6.idl

See also

IXMLHTTPRequest2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft