Share via


IThresholdRule.CheckCounterValue Method

Checks the value of one or more counter samples against a threshold and returns a result that indicates the status of the counter relative to the threshold parameters specified by the rule parameters.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.LoadTesting.ThresholdRuleResult
A ThresholdRuleResult enumeration.

.NET Framework Security

See Also

Reference

IThresholdRule Interface

Microsoft.VisualStudio.TestTools.LoadTesting Namespace