Share via


WebViewLongRunningScriptDetectedEventArgs.ExecutionTime 屬性

定義

取得 WebView 控制項執行長時間執行腳本的毫秒數。

public:
 property TimeSpan ExecutionTime { TimeSpan get(); };
TimeSpan ExecutionTime();
public System.TimeSpan ExecutionTime { get; }
var timeSpan = webViewLongRunningScriptDetectedEventArgs.executionTime;
Public ReadOnly Property ExecutionTime As TimeSpan

屬性值

腳本執行中的毫秒數。

備註

如果腳本在 5 秒後仍在執行,應用程式將會停止回應。 若要停止腳本,請將 StopPageScriptExecution 屬性設定為 true。 已停止的腳本將不會在 WebView的存留期內繼續。

適用於

另請參閱