WebUIView.UnsafeContentWarningDisplaying 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当控件显示 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
WebUIView::UnsafeContentWarningDisplaying_revoker UnsafeContentWarningDisplaying(auto_revoke_t, TypedEventHandler<IWebViewControl, IInspectable const&> const& handler) const;
public event TypedEventHandler<IWebViewControl,object> UnsafeContentWarningDisplaying;
function onUnsafeContentWarningDisplaying(eventArgs) { /* Your code */ }
webUIView.addEventListener("unsafecontentwarningdisplaying", onUnsafeContentWarningDisplaying);
webUIView.removeEventListener("unsafecontentwarningdisplaying", onUnsafeContentWarningDisplaying);
- or -
webUIView.onunsafecontentwarningdisplaying = onUnsafeContentWarningDisplaying;
Public Custom Event UnsafeContentWarningDisplaying As TypedEventHandler(Of IWebViewControl, Object) Implements UnsafeContentWarningDisplaying
事件类型
TypedEventHandler<IWebViewControl,IInspectable>