WebViewLongRunningScriptDetectedEventArgs WebViewLongRunningScriptDetectedEventArgs WebViewLongRunningScriptDetectedEventArgs WebViewLongRunningScriptDetectedEventArgs Class

Definition

Provides data for the WebView.LongRunningScriptDetected event.

public : sealed class WebViewLongRunningScriptDetectedEventArgs : IWebViewLongRunningScriptDetectedEventArgspublic sealed class WebViewLongRunningScriptDetectedEventArgs : IWebViewLongRunningScriptDetectedEventArgsPublic NotInheritable Class WebViewLongRunningScriptDetectedEventArgs Implements IWebViewLongRunningScriptDetectedEventArgs// 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)

Properties

ExecutionTime ExecutionTime ExecutionTime ExecutionTime

Gets the number of milliseconds that the WebView control has been executing a long-running script.

public : TimeSpan ExecutionTime { get; }public TimeSpan ExecutionTime { get; }Public ReadOnly Property ExecutionTime As TimeSpan// This API is not available in Javascript.
Value
TimeSpan TimeSpan TimeSpan TimeSpan

The number of milliseconds the script has been running.

Remarks

If the script is still running after 5 seconds, the app will hang. To halt the script, set the StopPageScriptExecution property to true. The halted script will not resume for the lifetime of the WebView.

StopPageScriptExecution StopPageScriptExecution StopPageScriptExecution StopPageScriptExecution

Halts a long-running script executing in a WebView control.

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

true to halt the script; otherwise, false.

Remarks

The halted script will not resume for the lifetime of the WebView. If the script is still running after 5 seconds, the app will hang. To determine how long the script has been running, check the ExecutionTime property.