Compartir a través de


interface ICoreWebView2WebResourceRequestedEventHandler

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

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)