WebViewLongRunningScriptDetectedEventArgs.StopPageScriptExecution 屬性

定義

停止在 WebView 控制項中執行的長時間執行腳本。

public:
 property bool StopPageScriptExecution { bool get(); void set(bool value); };
bool StopPageScriptExecution();

void StopPageScriptExecution(bool value);
public bool StopPageScriptExecution { get; set; }
var boolean = webViewLongRunningScriptDetectedEventArgs.stopPageScriptExecution;
webViewLongRunningScriptDetectedEventArgs.stopPageScriptExecution = boolean;
Public Property StopPageScriptExecution As Boolean

屬性值

Boolean

bool

true 表示停止腳本;否則為 false

備註

WebView的存留期內,已停止的腳本將不會繼續。 如果腳本在 5 秒後仍在執行,應用程式將會停止回應。 若要判斷腳本執行的時間長度,請檢查 ExecutionTime 屬性。

適用於

另請參閱