WebViewSettings WebViewSettings WebViewSettings WebViewSettings Class

Definition

Defines properties that enable or disable WebView features.

public : sealed class WebViewSettings : IWebViewSettingspublic sealed class WebViewSettings : IWebViewSettingsPublic NotInheritable Class WebViewSettings Implements IWebViewSettings// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

To get an instance of this class, use the WebView.Settings property.

Properties

IsIndexedDBEnabled IsIndexedDBEnabled IsIndexedDBEnabled IsIndexedDBEnabled

Gets or sets a value that indicates whether the use of IndexedDB is allowed in the WebView.

public : PlatForm::Boolean IsIndexedDBEnabled { get; set; }public bool IsIndexedDBEnabled { get; set; }Public ReadWrite Property IsIndexedDBEnabled As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if IndexedDB is allowed in the WebView; otherwise, false. The default is true.

IsJavaScriptEnabled IsJavaScriptEnabled IsJavaScriptEnabled IsJavaScriptEnabled

Gets or sets a value that indicates whether the use of JavaScript is allowed in the WebView.

public : PlatForm::Boolean IsJavaScriptEnabled { get; set; }public bool IsJavaScriptEnabled { get; set; }Public ReadWrite Property IsJavaScriptEnabled As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if JavaScript is allowed in the WebView; otherwise, false. The default is true.