IThresholdRule.CheckCounterValue 方法

根据阈值检查一个或多个计数器样本的值,并返回指示计数器相对于规则参数所指定的阈值参数的状态的结果。

命名空间:  Microsoft.VisualStudio.TestTools.LoadTesting
程序集:  Microsoft.VisualStudio.QualityTools.LoadTestFramework(在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)

语法

声明
Function CheckCounterValue ( _
    counterValue As PerformanceCounterValue, _
    counterProvider As ICounterProvider _
) As ThresholdRuleResult
ThresholdRuleResult CheckCounterValue(
    PerformanceCounterValue counterValue,
    ICounterProvider counterProvider
)
ThresholdRuleResult CheckCounterValue(
    PerformanceCounterValue^ counterValue, 
    ICounterProvider^ counterProvider
)
abstract CheckCounterValue : 
        counterValue:PerformanceCounterValue * 
        counterProvider:ICounterProvider -> ThresholdRuleResult
function CheckCounterValue(
    counterValue : PerformanceCounterValue, 
    counterProvider : ICounterProvider
) : ThresholdRuleResult

参数

返回值

类型:Microsoft.VisualStudio.TestTools.LoadTesting.ThresholdRuleResult
ThresholdRuleResult 枚举。

.NET Framework 安全性

请参阅

参考

IThresholdRule 接口

Microsoft.VisualStudio.TestTools.LoadTesting 命名空间