WebViewControlLongRunningScriptDetectedEventArgs.StopPageScriptExecution WebViewControlLongRunningScriptDetectedEventArgs.StopPageScriptExecution WebViewControlLongRunningScriptDetectedEventArgs.StopPageScriptExecution WebViewControlLongRunningScriptDetectedEventArgs.StopPageScriptExecution WebViewControlLongRunningScriptDetectedEventArgs.StopPageScriptExecution Property

Definition

Halts a long-running script executing in a IWebViewControl.

public : Platform::Boolean StopPageScriptExecution { get; set; }
bool StopPageScriptExecution();

void StopPageScriptExecution(bool stoppagescriptexecution);
public bool StopPageScriptExecution { get; set; }
Public ReadWrite Property StopPageScriptExecution As bool
var bool = webViewControlLongRunningScriptDetectedEventArgs.stopPageScriptExecution;
webViewControlLongRunningScriptDetectedEventArgs.stopPageScriptExecution = bool;

Property Value

bool bool bool

true to halt the script; otherwise, false.

Remarks

The halted script will not resume for the lifetime of the IWebViewControl unless it is reloaded during a subsequent IWebViewControl navigation. 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.