IsPerfData Method

Determines whether the object provided to the script by Microsoft Operations Manager 2000 is a PerfData object.

Syntax

ScriptContext.IsPerfData

Parameters

None.

Return Type

Boolean.

Example

To determine whether the object provided to the script by MOM is a PerfData object, enter:

Dim MYperfdata
If ScriptContext.IsPerfData then
Set MYperfdata = ScriptContext.PerfData
End If

This example gets the PerfData object with the PerfData property after determining whether the object is a PerfData object.