WebViewControlLongRunningScriptDetectedEventArgs.StopPageScriptExecution 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
停止 在 IWebViewControl中執行的長時間執行腳本。
public:
property bool StopPageScriptExecution { bool get(); void set(bool value); };
bool StopPageScriptExecution();
void StopPageScriptExecution(bool value);
public bool StopPageScriptExecution { get; set; }
var boolean = webViewControlLongRunningScriptDetectedEventArgs.stopPageScriptExecution;
webViewControlLongRunningScriptDetectedEventArgs.stopPageScriptExecution = boolean;
Public Property StopPageScriptExecution As Boolean
屬性值
Boolean
bool
true 表示停止腳本;否則為 false。
備註
除非在後續的 IWebViewControl巡覽期間重載已停止的腳本,否則IWebViewControl的存留期不會繼續。 如果腳本在 5 秒後仍在執行,應用程式將會停止回應。 若要判斷腳本執行的時間長度,請檢查 ExecutionTime 屬性。