共用方式為


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 類別將檔案重新導向至瀏覽器或其他應用程式。

適用於