Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IXMLHTTPRequest2Callback::OnError method

Occurs when an error is encountered or the request has been aborted.

Syntax


HRESULT OnError(
  [in, optional]  IXMLHTTPRequest2 *pXHR,
  HRESULT hrError
);

Parameters

pXHR [in, optional]

The initial HTTP request.

hrError

A code representing the error that occurred on the HTTP request.

Return value

Returns S_OK on success.

Note  This callback function must not throw exceptions.

Remarks

Unless the request completes successfully, indicated by OnResponseReceived, the call to OnError is the final callback. The client should perform any required cleanup including releasing references to the IXMLHTTPRequest2 object.

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

ISequentialStream Interface
IXMLHTTPRequest2Callback

 

 

Community Additions

Show:
© 2014 Microsoft