共用方式為


LoadTest.ThresholdExceeded 事件

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

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

語法

'宣告
Public Event ThresholdExceeded As EventHandler(Of ThresholdExceededEventArgs)
public event EventHandler<ThresholdExceededEventArgs> ThresholdExceeded
public:
 event EventHandler<ThresholdExceededEventArgs^>^ ThresholdExceeded {
    void add (EventHandler<ThresholdExceededEventArgs^>^ value);
    void remove (EventHandler<ThresholdExceededEventArgs^>^ value);
}
member ThresholdExceeded : IEvent<EventHandler<ThresholdExceededEventArgs>,
    ThresholdExceededEventArgs>
JScript 不支援事件。

備註

ThresholdExceededEventArgs 标识超出了阈值,性能计数器示例中,值的性能计数器和超过严重阈值级别或只是警告阈值级别值。

注意事項注意事項

如果没有运行负载测试中,多台代理计算机 ThresholdExceeded 将所有代理上激发事件。

有关如何处理事件的详细信息,请参阅 Consuming Events

.NET Framework 安全性

請參閱

參考

LoadTest 類別

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間

其他資源

About Counter Sets