WebView.AllowedScriptNotifyUrisProperty 속성

정의

참고

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

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

속성 값

AllowedScriptNotifyUris 종속성 속성의 식별자입니다.

특성

설명

Windows 8.1

AllowedScriptNotifyUrisProperty는 Windows 8.1 위해 컴파일된 앱에서 지원되지 않습니다. window.external.notify를 호출할 때 외부 웹 페이지에서 ScriptNotify 이벤트를 실행하도록 설정하려면 앱 매니페스트의 ApplicationContentUriRules 섹션에 페이지의 URI를 포함해야 합니다. ( Package.appxmanifest 디자이너의 콘텐츠 URI 탭에 있는 Visual Studio에서 이 작업을 수행할 수 있습니다.) 이 목록의 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 메서드를 사용하여 로드된 콘텐츠에는 적용되지 않습니다.

적용 대상