次の方法で共有


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 Gets the Handled property.
put_Handled By default, both the PermissionRequested event handlers on the CoreWebView2Frame and the CoreWebView2 will be invoked, with the CoreWebView2Frame event handlers invoked first.

Applies to

Product Introduced
WebView2 Win32 1.0.1185.39
WebView2 Win32 Prerelease 1.0.1158

Members

get_Handled

Gets the Handled property.

public HRESULT get_Handled(BOOL * value)

put_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 put_Handled(BOOL value)

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 CoreWebView2s event handlers from being invoked.