Microsoft Operations Manager

IsPerfData Method

The IsPerfDatamethod determines whether the object provided to the script by MOM is a PerfDataobject.

[VBScript] ScriptContext.IsPerfData()

Return Value

Long Integer

Examples

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

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

ScriptContext Object, PerfData Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.