Bagikan melalui


WebView.AllowedScriptNotifyUrisProperty Properti

Definisi

Catatan

AllowedScriptNotifyUrisProperty tidak didukung dalam aplikasi yang dikompilasi untuk Windows 8.1. Sebagai gantinya, perbarui bagian ApplicationContentUriRules dari manifes aplikasi. Untuk informasi selengkapnya, lihat bagian Keterangan.

Mengidentifikasi properti dependensi 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

Nilai Properti

Pengidentifikasi untuk properti dependensi AllowedScriptNotifyUris .

Atribut

Keterangan

Windows 8.1

AllowedScriptNotifyUrisProperty tidak didukung dalam aplikasi yang dikompilasi untuk Windows 8.1. Untuk mengaktifkan halaman web eksternal untuk mengaktifkan peristiwa ScriptNotify saat memanggil window.external.notify, Anda harus menyertakan URI halaman di bagian ApplicationContentUriRules dari manifes aplikasi. (Anda dapat melakukan ini di Visual Studio pada tab URI Konten dari perancang Package.appxmanifest .) URI dalam daftar ini harus menggunakan HTTPS, dan mungkin berisi kartubebas subdomain (misalnya, https://.microsoft.com) tetapi tidak boleh berisi kartubebas domain (misalnya, https://.com dan https://.). Persyaratan manifes tidak berlaku untuk konten yang berasal dari paket aplikasi, menggunakan URI ms-local-stream://, atau dimuat menggunakan NavigateToString.

Windows 8

Keterangan ini hanya berlaku untuk aplikasi yang dikompilasi untuk Windows 8, bahkan saat berjalan di Windows 8.1.

Untuk mengaktifkan halaman web eksternal untuk mengaktifkan peristiwa ScriptNotify saat memanggil window.external.notify, Anda harus menyertakan URI halaman dalam daftar yang dikembalikan oleh properti AllowedScriptNotifyUris . Atur properti ini ke AnyScriptNotifyUri untuk menunjukkan bahwa halaman apa pun dapat mengaktifkan peristiwa ScriptNotify untuk kontrol WebView ini. Persyaratan ini tidak berlaku untuk konten yang dimuat menggunakan metode NavigateToString .

Berlaku untuk