根据阈值检查一个或多个计数器样本的值,并返回指示计数器相对于规则参数所指定的阈值参数的状态的结果。
命名空间:  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
参数
- counterValue
 类型:Microsoft.VisualStudio.TestTools.LoadTesting.PerformanceCounterValue
 性能计数器的计算值。
- counterProvider
 类型:Microsoft.VisualStudio.TestTools.LoadTesting.ICounterProvider
 提供有关性能计数器值的信息。
返回值
类型:Microsoft.VisualStudio.TestTools.LoadTesting.ThresholdRuleResult
一个 ThresholdRuleResult 枚举。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。