WebViewControl.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
WebViewControl::UnsafeContentWarningDisplaying_revoker UnsafeContentWarningDisplaying(auto_revoke_t, TypedEventHandler<IWebViewControl, IInspectable const&> const& handler) const;
public event TypedEventHandler<IWebViewControl,object> UnsafeContentWarningDisplaying;
function onUnsafeContentWarningDisplaying(eventArgs) { /* Your code */ }
webViewControl.addEventListener("unsafecontentwarningdisplaying", onUnsafeContentWarningDisplaying);
webViewControl.removeEventListener("unsafecontentwarningdisplaying", onUnsafeContentWarningDisplaying);
- or -
webViewControl.onunsafecontentwarningdisplaying = onUnsafeContentWarningDisplaying;
Public Custom Event UnsafeContentWarningDisplaying As TypedEventHandler(Of IWebViewControl, Object) Implements UnsafeContentWarningDisplaying
事件類型
TypedEventHandler<IWebViewControl,IInspectable>