interface ICoreWebView2ExperimentalPermissionRequestedEventArgs
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalPermissionRequestedEventArgs
: public ICoreWebView2PermissionRequestedEventArgs
This is a continuation of the ICoreWebView2PermissionRequestedEventArgs interface.
Summary
Members | Descriptions |
---|---|
get_Handled | By default, both the PermissionRequested event handlers on the CoreWebView2Frame and the CoreWebView2 will be invoked, with the CoreWebView2Frame event handlers invoked first. |
put_Handled | Sets the Handled property. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | N/A |
WebView2 Win32 Prerelease | 1.0.1133 |
Members
get_Handled
By default, both the PermissionRequested
event handlers on the CoreWebView2Frame and the CoreWebView2
will be invoked, with the CoreWebView2Frame event handlers invoked first.
public HRESULT get_Handled(BOOL * handled)
The host may set this flag to TRUE
within the CoreWebView2Frame
event handlers to prevent the remaining CoreWebView2
event handlers from being invoked.
If a deferral is taken on the event args, then you must synchronously set Handled
to TRUE prior to taking your deferral to prevent the CoreWebView2
s event handlers from being invoked.
put_Handled
Sets the Handled
property.
public HRESULT put_Handled(BOOL handled)