Skip to content

Latest commit

 

History

History
82 lines (63 loc) · 2.81 KB

nf-msxml6-ixmlhttprequest2callback-onerror.md

File metadata and controls

82 lines (63 loc) · 2.81 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:msxml6.IXMLHTTPRequest2Callback.OnError
IXMLHTTPRequest2Callback::OnError (msxml6.h)
Occurs when an error is encountered or the request has been aborted.
IXMLHTTPRequest2Callback interface [XMLHttpRequest2]
OnError method
IXMLHTTPRequest2Callback.OnError
IXMLHTTPRequest2Callback::OnError
OnError
OnError method [XMLHttpRequest2]
OnError method [XMLHttpRequest2]
IXMLHTTPRequest2Callback interface
ixhr2.ixmlhttprequest2callback_onerror
msxml6/IXMLHTTPRequest2Callback::OnError
ixhr2\ixmlhttprequest2callback_onerror.htm
ixhr2
532C97A7-B952-47BE-A9C7-5B1E5AB4C3D3
12/05/2018
IXMLHTTPRequest2Callback interface [XMLHttpRequest2],OnError method, IXMLHTTPRequest2Callback.OnError, IXMLHTTPRequest2Callback::OnError, OnError, OnError method [XMLHttpRequest2], OnError method [XMLHttpRequest2],IXMLHTTPRequest2Callback interface, ixhr2.ixmlhttprequest2callback_onerror, msxml6/IXMLHTTPRequest2Callback::OnError
msxml6.h
Windows
Windows 8 [desktop apps \| UWP apps],MSXML 6.0 and later
Windows Server 2012 [desktop apps \| UWP apps]
Msxml6.idl
Windows
19H1
IXMLHTTPRequest2Callback::OnError
msxml6/IXMLHTTPRequest2Callback::OnError
c++
APIRef
kbSyntax
COM
msxml6.h
IXMLHTTPRequest2Callback.OnError

IXMLHTTPRequest2Callback::OnError

-description

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

-parameters

-param pXHR [in, optional]

The initial HTTP request.

-param hrError

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

-returns

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.

-see-also

ISequentialStream Interface

IXMLHTTPRequest2Callback