Share via


WebView.AllowedScriptNotifyUrisProperty Propriété

Définition

Notes

AllowedScriptNotifyUrisProperty n’est pas pris en charge dans les applications compilées pour Windows 8.1. Au lieu de cela, mettez à jour la section ApplicationContentUriRules du manifeste de l’application. Pour plus d’informations, consultez la section Remarques.

Identifie la propriété de dépendance AllowedScriptNotifyUris .

public:
 static property DependencyProperty ^ AllowedScriptNotifyUrisProperty { DependencyProperty ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("AllowedScriptNotifyUris is unavailable for releases beginning with Windows 8.1. Instead, list URIs under ApplicationContentUriRules in the package manifest. For more info, see the AllowedScriptNotifyUris documentation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static DependencyProperty AllowedScriptNotifyUrisProperty();
/// [get: Windows.Foundation.Metadata.Deprecated("AllowedScriptNotifyUris is unavailable for releases beginning with Windows 8.1. Instead, list URIs under ApplicationContentUriRules in the package manifest. For more info, see the AllowedScriptNotifyUris documentation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static DependencyProperty AllowedScriptNotifyUrisProperty();
public static DependencyProperty AllowedScriptNotifyUrisProperty { [Windows.Foundation.Metadata.Deprecated("AllowedScriptNotifyUris is unavailable for releases beginning with Windows 8.1. Instead, list URIs under ApplicationContentUriRules in the package manifest. For more info, see the AllowedScriptNotifyUris documentation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public static DependencyProperty AllowedScriptNotifyUrisProperty { [Windows.Foundation.Metadata.Deprecated("AllowedScriptNotifyUris is unavailable for releases beginning with Windows 8.1. Instead, list URIs under ApplicationContentUriRules in the package manifest. For more info, see the AllowedScriptNotifyUris documentation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var dependencyProperty = WebView.allowedScriptNotifyUrisProperty;
Public Shared ReadOnly Property AllowedScriptNotifyUrisProperty As DependencyProperty

Valeur de propriété

Identificateur de la propriété de dépendance AllowedScriptNotifyUris .

Attributs

Remarques

Windows 8.1

AllowedScriptNotifyUrisProperty n’est pas pris en charge dans les applications compilées pour Windows 8.1. Pour permettre à une page web externe de déclencher l’événement ScriptNotify lors de l’appel de window.external.notify, vous devez inclure l’URI de la page dans la section ApplicationContentUriRules du manifeste de l’application. (Vous pouvez effectuer cette opération dans Visual Studio sous l’onglet URI de contenu du concepteur Package.appxmanifest .) Les URI de cette liste doivent utiliser HTTPS et peuvent contenir des caractères génériques de sous-domaine (par exemple, https://.microsoft.com), mais ils ne peuvent pas contenir de caractères génériques de domaine (par exemple, https://.com et https://.). La configuration requise pour le manifeste ne s’applique pas au contenu qui provient du package d’application, qui utilise un URI ms-local-stream:// ou qui est chargé à l’aide de NavigateToString.

Windows 8

Ces remarques s’appliquent uniquement aux applications compilées pour Windows 8, même en cas d’exécution sur Windows 8.1.

Pour permettre à une page web externe de déclencher l’événement ScriptNotify lors de l’appel de window.external.notify, vous devez inclure l’URI de la page dans la liste retournée par la propriété AllowedScriptNotifyUris . Définissez cette propriété sur AnyScriptNotifyUri pour indiquer qu’une page peut déclencher des événements ScriptNotify pour ce contrôle WebView . Cette exigence ne s’applique pas au contenu chargé à l’aide de la méthode NavigateToString .

S’applique à