interface ICoreWebView2PermissionRequestedEventArgs2
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
interface ICoreWebView2PermissionRequestedEventArgs2
: 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 | 1.0.1185.39 |
WebView2 Win32 Prerelease | 1.0.1158 |
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)
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour