Compartilhar via


WebView.AllowedScriptNotifyUrisProperty Propriedade

Definição

Observação

Não há suporte para AllowedScriptNotifyUrisProperty em aplicativos compilados para Windows 8.1. Em vez disso, atualize a seção ApplicationContentUriRules do manifesto do aplicativo. Para obter mais informações, consulte a seção Comentários.

Identifica a propriedade de dependência 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

Valor da propriedade

O identificador da propriedade de dependência AllowedScriptNotifyUris .

Atributos

Comentários

Windows 8.1

Não há suporte para AllowedScriptNotifyUrisProperty em aplicativos compilados para Windows 8.1. Para habilitar uma página da Web externa para disparar o evento ScriptNotify ao chamar window.external.notify, você deve incluir o URI da página na seção ApplicationContentUriRules do manifesto do aplicativo. (Você pode fazer isso no Visual Studio na guia URIs de Conteúdo do designer Package.appxmanifest .) Os URIs nesta lista devem usar HTTPS e podem conter caracteres curinga de subdomínio (por exemplo, https://.microsoft.com), mas não podem conter curingas de domínio (por exemplo, https://.com e https://.). O requisito de manifesto não se aplica ao conteúdo que se origina no pacote do aplicativo, que usa um URI ms-local-stream:// ou que seja carregado usando o método NavigateToString.

Windows 8

Esses comentários se aplicam somente a aplicativos compilados para Windows 8, mesmo quando executados em Windows 8.1.

Para habilitar uma página da Web externa para disparar o evento ScriptNotify ao chamar window.external.notify, você deve incluir o URI da página na lista retornada pela propriedade AllowedScriptNotifyUris . Defina essa propriedade como AnyScriptNotifyUri para indicar que qualquer página pode disparar eventos ScriptNotify para esse controle WebView . Esse requisito não se aplica ao conteúdo carregado usando o método NavigateToString .

Aplica-se a