共用方式為


IWebViewControl.UnsafeContentWarningDisplaying 事件

定義

發生于 IWebViewControl 顯示 SmartScreen 篩選所回報為不安全之內容的警告頁面時。

// Register
event_token UnsafeContentWarningDisplaying(TypedEventHandler<IWebViewControl, IInspectable const&> const& handler) const;

// Revoke with event_token
void UnsafeContentWarningDisplaying(event_token const* cookie) const;

// Revoke with event_revoker
IWebViewControl::UnsafeContentWarningDisplaying_revoker UnsafeContentWarningDisplaying(auto_revoke_t, TypedEventHandler<IWebViewControl, IInspectable const&> const& handler) const;
event TypedEventHandler<IWebViewControl,object> UnsafeContentWarningDisplaying;
function onUnsafeContentWarningDisplaying(eventArgs) { /* Your code */ }
iWebViewControl.addEventListener("unsafecontentwarningdisplaying", onUnsafeContentWarningDisplaying);
iWebViewControl.removeEventListener("unsafecontentwarningdisplaying", onUnsafeContentWarningDisplaying);
- or -
iWebViewControl.onunsafecontentwarningdisplaying = onUnsafeContentWarningDisplaying;
Event UnsafeContentWarningDisplaying As TypedEventHandler(Of IWebViewControl, Object) 

事件類型

備註

當警告頁面出現時,就會發生此事件。 如果使用者選擇繼續瀏覽,則後續的頁面瀏覽不會顯示警告,也不會引發事件。

適用於