Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.92 KB

icorewebview2webresourcerequestedeventhandler.md

File metadata and controls

50 lines (36 loc) · 1.92 KB
description title ms.date keywords topic_type api_name api_type api_location
Runs when a URL request (through network, file, and so on) is made in the webview for a Web resource matching resource context filter and URL specified in `AddWebResourceRequestedFilter`.
WebView2 Win32 C++ ICoreWebView2WebResourceRequestedEventHandler
02/26/2024
IWebView2, IWebView2WebView, webview2, webview, win32 apps, win32, edge, ICoreWebView2, ICoreWebView2Controller, browser control, edge html, ICoreWebView2WebResourceRequestedEventHandler
APIRef
ICoreWebView2WebResourceRequestedEventHandler
ICoreWebView2WebResourceRequestedEventHandler.Invoke
COM
embeddedbrowserwebview.dll

interface ICoreWebView2WebResourceRequestedEventHandler

[!INCLUDE deprecation-note]

interface ICoreWebView2WebResourceRequestedEventHandler
  : public IUnknown

Runs when a URL request (through network, file, and so on) is made in the webview for a Web resource matching resource context filter and URL specified in AddWebResourceRequestedFilter.

Summary

Members Descriptions
Invoke Provides the event args for the corresponding event.

The host views and modifies the request or provide a response in a similar pattern to HTTP, in which case the request immediately completed. This may not contain any request headers that are added by the network stack, such as an Authorization header.

Applies to

Product Introduced
WebView2 Win32 0.9.430
WebView2 Win32 Prerelease 0.9.488

Members

Invoke

Provides the event args for the corresponding event.

public HRESULT Invoke(ICoreWebView2 * sender, ICoreWebView2WebResourceRequestedEventArgs * args)