共用方式為


LoadTest.ThresholdExceeded 事件

更新:2007 年 11 月

發生於超出臨界值規則時。

命名空間:  Microsoft.VisualStudio.TestTools.LoadTesting
組件:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)

語法

Public Event ThresholdExceeded As EventHandler(Of ThresholdExceededEventArgs)

Dim instance As LoadTest
Dim handler As EventHandler(Of ThresholdExceededEventArgs)

AddHandler instance.ThresholdExceeded, handler
public event EventHandler<ThresholdExceededEventArgs> ThresholdExceeded
public:
 event EventHandler<ThresholdExceededEventArgs^>^ ThresholdExceeded {
    void add (EventHandler<ThresholdExceededEventArgs^>^ value);
    void remove (EventHandler<ThresholdExceededEventArgs^>^ value);
}
JScript 不支援事件。

備註

ThresholdExceededEventArgs 用來識別超過臨界值的效能計數器、效能計數器樣本值,以及該值是否超出關鍵臨界值層級或是超出警告臨界值層級。

注意事項:

如果有一個以上代理程式電腦執行負載測試,ThresholdExceeded 事件將會在所有代理程式上引發。

如需如何處理事件的詳細資訊,請參閱使用事件

使用權限

請參閱

參考

LoadTest 類別

LoadTest 成員

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間

其他資源

關於計數器集合