Share via


WebView.AnyScriptNotifyUri 속성

정의

참고

AnyScriptNotifyUri는 Windows 8.1 위해 컴파일된 앱에서 지원되지 않습니다. 대신 앱 매니페스트의 ApplicationContentUriRules 섹션을 업데이트합니다. 자세한 내용은 설명 섹션을 참조하세요.

AllowedScriptNotifyUris 속성을 설정하여 모든 페이지에서 ScriptNotify 이벤트를 이 WebView로 실행할 수 있음을 나타내는 데 사용할 수 있는 값을 가져옵니다.

public:
 static property IVector<Uri ^> ^ AnyScriptNotifyUri { IVector<Uri ^> ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("AnyScriptNotifyUri is unavailable for releases beginning with Windows 8.1. Instead, list URIs under ApplicationContentUriRules in the package manifest. For more info, see the AnyScriptNotifyUri documentation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static IVector<Uri> AnyScriptNotifyUri();
/// [get: Windows.Foundation.Metadata.Deprecated("AnyScriptNotifyUri is unavailable for releases beginning with Windows 8.1. Instead, list URIs under ApplicationContentUriRules in the package manifest. For more info, see the AnyScriptNotifyUri documentation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static IVector<Uri> AnyScriptNotifyUri();
public static IList<System.Uri> AnyScriptNotifyUri { [Windows.Foundation.Metadata.Deprecated("AnyScriptNotifyUri is unavailable for releases beginning with Windows 8.1. Instead, list URIs under ApplicationContentUriRules in the package manifest. For more info, see the AnyScriptNotifyUri documentation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public static IList<System.Uri> AnyScriptNotifyUri { [Windows.Foundation.Metadata.Deprecated("AnyScriptNotifyUri is unavailable for releases beginning with Windows 8.1. Instead, list URIs under ApplicationContentUriRules in the package manifest. For more info, see the AnyScriptNotifyUri documentation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var iVector = WebView.anyScriptNotifyUri;
Public Shared ReadOnly Property AnyScriptNotifyUri As IList(Of Uri)

속성 값

ScriptNotify 이벤트를 발생시킬 수 있는 URI의 안전 목록입니다.

특성

설명

Windows 8.1

AnyScriptNotifyUri는 Windows 8.1 위해 컴파일된 앱에서 지원되지 않습니다. window.external.notify를 호출할 때 외부 웹 페이지에서 ScriptNotify 이벤트를 발생시킬 수 있도록 하려면 앱 매니페스트의 ApplicationContentUriRules 섹션에 페이지의 URI를 포함해야 합니다. Visual Studio에서 Package.appxmanifest 디자이너의 콘텐츠 URI 탭에서 이 작업을 수행할 수 있습니다. 이 목록의 URI는 HTTPS를 사용해야 하며 하위 도메인 와일드카드(예: https://.microsoft.com)를 포함할 수 있지만 도메인 와일드카드(예: https://.com 및 https://)를 포함할 수 없습니다. 매니페스트 요구 사항은 앱 패키지에서 시작되거나 ms-local-stream:// URI를 사용하거나 NavigateToString을 통해 로드되는 콘텐츠에 적용되지 않습니다.

Windows 8

이러한 설명은 Windows 8.1 실행되는 경우에도 Windows 8용으로 컴파일된 앱에만 적용됩니다.

window.external.notify를 호출할 때 외부 웹 페이지가 ScriptNotify 이벤트를 발생시킬 수 있도록 하려면 AllowedScriptNotifyUris 속성에서 반환된 목록에 페이지의 URI를 포함해야 합니다. 모든 페이지에서 이 WebView 컨트롤에 대한 ScriptNotify 이벤트를 실행할 수 있음을 나타내려면 이 속성을 AnyScriptNotifyUri로 설정합니다. 이 요구 사항은 NavigateToString 메서드를 사용하여 로드된 콘텐츠에는 적용되지 않습니다.

적용 대상