共用方式為


IThresholdRule 介面

用來監視負載測試回合的效能計數器值,以便在效能計數器值超過臨界值時發出警告或重大警示。

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

語法

'宣告
Public Interface IThresholdRule
public interface IThresholdRule
public interface class IThresholdRule
type IThresholdRule =  interface end
public interface IThresholdRule

IThresholdRule 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 ViolationMessage 取得說明規則違規的訊息。

回頁首

方法

  名稱 說明
公用方法 CheckCounterValue 根據臨界值檢查一個或多個計數器樣本的值,並且傳回結果指出與規則參數所指定之臨界值參數相關的計數器狀態。

回頁首

備註

這定義了臨界值規則實作的介面。除了內建的實作之外,可能還有使用者撰寫的臨界值規則實作。

請參閱

參考

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間