Udostępnij za pośrednictwem


IWebViewControl.UnsupportedUriSchemeIdentified Event

Definition

Occurs when an attempt is made to navigate to a Uniform Resource Identifier (URI) using a scheme that IWebViewControl doesn't support.

// Register
event_token UnsupportedUriSchemeIdentified(TypedEventHandler<IWebViewControl, WebViewControlUnsupportedUriSchemeIdentifiedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
IWebViewControl::UnsupportedUriSchemeIdentified_revoker UnsupportedUriSchemeIdentified(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlUnsupportedUriSchemeIdentifiedEventArgs const&> const& handler) const;
event TypedEventHandler<IWebViewControl,WebViewControlUnsupportedUriSchemeIdentifiedEventArgs> UnsupportedUriSchemeIdentified;
function onUnsupportedUriSchemeIdentified(eventArgs) { /* Your code */ }
iWebViewControl.addEventListener("unsupportedurischemeidentified", onUnsupportedUriSchemeIdentified);
iWebViewControl.removeEventListener("unsupportedurischemeidentified", onUnsupportedUriSchemeIdentified);
- or -
iWebViewControl.onunsupportedurischemeidentified = onUnsupportedUriSchemeIdentified;
Event UnsupportedUriSchemeIdentified As TypedEventHandler(Of IWebViewControl, WebViewControlUnsupportedUriSchemeIdentifiedEventArgs) 

Event Type

Remarks

See WebViewControlUnsupportedUriSchemeIdentifiedEventArgs.

IWebViewControl supports navigation to Uniform Resource Identifier (URI) using these schemes: http, https, ms-appx-web, ms-appdata and ms-local-stream.

If an attempt is made to navigate to a Uniform Resource Identifier (URI) that the IebViewControl doesn't support, the navigation is blocked. By default, when an unsupported Uniform Resource Identifier (URI) scheme is encountered, the launcher is invoked to find the default provider for the Uniform Resource Identifier (URI) scheme. You can handle the UnsupportedUriSchemeIdentified event to decide how to handle an unsupported Uniform Resource Identifier (URI) scheme. If you do nothing, the launcher is invoked. If you provide custom handling for the Uniform Resource Identifier (URI) scheme, set the Handled property to true to prevent the default provider for the Uniform Resource Identifier (URI) scheme from being invoked.

Applies to