description | title | author | ms.author | ms.date | ms.topic | keywords |
---|---|---|---|---|---|---|
Event args for the WebResourceRequested event. |
WebView2 Win32 C++ ICoreWebView2WebResourceRequestedEventArgs |
MSEdgeTeam |
msedgedevrel |
10/07/2020 |
reference |
IWebView2, IWebView2WebView, webview2, webview, win32 apps, win32, edge, ICoreWebView2, ICoreWebView2Controller, browser control, edge html, ICoreWebView2WebResourceRequestedEventArgs |
[!INCLUDE deprecation-note]
interface ICoreWebView2WebResourceRequestedEventArgs
: public IUnknown
Event args for the WebResourceRequested event.
Members | Descriptions |
---|---|
get_Request | The HTTP request. |
get_ResourceContext | The web resource request contexts. |
get_Response | The HTTP response. |
GetDeferral | Obtain an ICoreWebView2Deferral object and put the event into a deferred state. |
put_Response | Set the Response property. |
The HTTP request.
public HRESULT get_Request(ICoreWebView2WebResourceRequest ** request)
The web resource request contexts.
public HRESULT get_ResourceContext(COREWEBVIEW2_WEB_RESOURCE_CONTEXT * context)
The HTTP response.
public HRESULT get_Response(ICoreWebView2WebResourceResponse ** response)
Obtain an ICoreWebView2Deferral object and put the event into a deferred state.
public HRESULT GetDeferral(ICoreWebView2Deferral ** deferral)
You can use the ICoreWebView2Deferral object to complete the network request at a later time.
Set the Response property.
public HRESULT put_Response(ICoreWebView2WebResourceResponse * response)