WebView.UnsafeContentWarningDisplaying 事件

定义

WebView 显示 SmartScreen 筛选器报告为不安全的内容的警告页面时发生。

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

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

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

事件类型

注解

此事件未在 Windows Phone 8.1 上实现,并且永远不会引发。

出现警告页时,会发生此事件。 如果用户选择继续导航,随后导航到该页面将不显示警告,也不会触发该事件。

适用于