Condividi tramite


IWebViewControl.UnsupportedUriSchemeIdentified Evento

Definizione

Si verifica quando viene eseguito un tentativo di passare a un URI (Uniform Resource Identifier) usando uno schema che IWebViewControl non supporta.

// 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) 

Tipo evento

Commenti

Vedere WebViewControlUnsupportedUriSchemeIdentifiedEventArgs.

IWebViewControl supporta la navigazione su Uniform Resource Identifier (URI) usando questi schemi: http, https, ms-appx-web, ms-appdata e ms-local-stream.

Se viene eseguito un tentativo di passare a un URI (Uniform Resource Identifier) che IebViewControl non supporta, lo spostamento viene bloccato. Per impostazione predefinita, quando viene rilevato uno schema URI (Uniform Resource Identifier) non supportato, il launcher viene richiamato per trovare il provider predefinito per lo schema URI (Uniform Resource Identifier). È possibile gestire l'evento UnsupportedUriSchemeIdentified per decidere come gestire uno schema URI (Uniform Resource Identifier) non supportato. Se non si fa nulla, viene richiamato il launcher. Se si fornisce una gestione personalizzata per lo schema URI (Uniform Resource Identifier), impostare la proprietà Handled su true per impedire che il provider predefinito per lo schema URI (Uniform Resource Identifier) venga richiamato .

Si applica a