Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- counterValue
Type: Microsoft.VisualStudio.TestTools.LoadTesting.PerformanceCounterValue
The computed value of a performance counter.
- counterProvider
Type: Microsoft.VisualStudio.TestTools.LoadTesting.ICounterProvider
Provides information about performance counter values.
Return Value
Type: Microsoft.VisualStudio.TestTools.LoadTesting.ThresholdRuleResult
A ThresholdRuleResult enumeration.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.