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)
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈