IWebViewControl.UnviewableContentIdentified 事件

定义

当 IWebViewControl 尝试下载不受支持的文件时发生。

// Register
event_token UnviewableContentIdentified(TypedEventHandler<IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
IWebViewControl::UnviewableContentIdentified_revoker UnviewableContentIdentified(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs const&> const& handler) const;
event TypedEventHandler<IWebViewControl,WebViewControlUnviewableContentIdentifiedEventArgs> UnviewableContentIdentified;
function onUnviewableContentIdentified(eventArgs) { /* Your code */ }
iWebViewControl.addEventListener("unviewablecontentidentified", onUnviewableContentIdentified);
iWebViewControl.removeEventListener("unviewablecontentidentified", onUnviewableContentIdentified);
- or -
iWebViewControl.onunviewablecontentidentified = onUnviewableContentIdentified;
Event UnviewableContentIdentified As TypedEventHandler(Of IWebViewControl, WebViewControlUnviewableContentIdentifiedEventArgs) 

事件类型

注解

IWebViewControl 无法承载任意文件类型,但你可以处理此事件并使用 Launcher 类将文件重定向到浏览器或其他应用。

适用于