Microsoft Operations Manager |
The IsPerfDatamethod determines whether the object provided to the script by MOM is a PerfDataobject.
[VBScript] ScriptContext.IsPerfData()
Long Integer
The following example shows how to determine whether the object provided to the script by MOM is a PerfDataobject.
[VBScript]
Function GetPerfData()
Dim objPerfData
If (ScriptContext.IsPerfData()) Then
Set objPerfData = ScriptContext.PerfData
Else
Set objPerfData = Nothing
End If
Set GetPerfData = objPerfData
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
ScriptContext Object, PerfData Object
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.