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.
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 |
|
|
IDL |
|
See also