Share via


PerfData.Value Property

Gets or sets the numeric value of the performance data.

 PerfData.Value

Access

Read/Write

Return Value

Double

Remarks

The Value property is read-only when used with performance data provided to the script by MOM. The property is read/write when used with new performance data created with the ScriptContext.CreatePerfData method.

Examples

The following example shows how to check the performance data value to see if it is within a specified range.

Function IsPerfDataWithinRange(objPerfData, dblMinValue, dblMaxValue)
    Dim blnIsInRange
    Dim dblValue

    blnIsInRange = False

    dblValue = objPerfData.Value

    If ((dblValue >= dblMinValue) And (dblValue <= dblMaxValue)) Then
        blnIsInRange =  True
    End If

    IsPerfDataWithinRange = blnIsInRange
End Function

Requirements

Platforms: Requires Windows 2000 or later

Version: Requires MOM 2000  or later

See Also

PerfData Object