Microsoft Operations Manager

PerfData Property

The PerfDataproperty gets the PerfDataobject that caused MOM to invoke the script.

[VBScript] ScriptContext.PerfData

Access

Read/Write

Return Value

Object

Examples

The following example shows how to access the PerfDataobject that caused MOM to invoke the script.

[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.