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)
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기