Web​View​Long​Running​Script​Detected​Event​Args Web​View​Long​Running​Script​Detected​Event​Args Web​View​Long​Running​Script​Detected​Event​Args Class

Definition

Provides data for the WebView.LongRunningScriptDetected event.

public : sealed class WebViewLongRunningScriptDetectedEventArgs : IWebViewLongRunningScriptDetectedEventArgspublic sealed class WebViewLongRunningScriptDetectedEventArgs : IWebViewLongRunningScriptDetectedEventArgsPublic NotInheritable Class WebViewLongRunningScriptDetectedEventArgs Implements IWebViewLongRunningScriptDetectedEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

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
Value
TimeSpan TimeSpan TimeSpan

The number of milliseconds the script has been running.

Attributes

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

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
Value
PlatForm::Boolean bool bool

true to halt the script; otherwise, false.

Attributes

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.