WebView.AllowedScriptNotifyUris property

This topic has not yet been rated - Rate this topic

Gets or sets a safe list of URIs that are permitted to fire ScriptNotify events to this WebView.

Syntax


public IList<Uri> AllowedScriptNotifyUris { get; set; }

Property value

Type: IVector<Uri> [C++] | System.Collections.Generic.IList<Uri> [.NET]

The safe list of URIs that are permitted to fire ScriptNotify events.

Remarks

ScriptNotify enables the hosted HTML page to fire this event to the XAML app when the page calls window.external.notify and passes a string parameter. If content is loaded into the WebView control using the Navigate method, the app must opt-in to receiving ScriptNotify events by using the AllowedScriptNotifyUris property, which has the list of URIs that can fire ScriptNotify. If the content is loaded using NavigateToString, the application will receive ScriptNotify events without the opt-in.

Set this property to the value returned by the AnyScriptNotifyUri property to indicate that any page can fire ScriptNotify events to this WebView control.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

WebView
AnyScriptNotifyUri

 

 

Build date: 3/12/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.