CreatePerfData Method

Generates a new PerfData object. Populate the PerfData object with the ScriptContext.PerfData object properties and methods. Then submit it to the Microsoft Operations Manager 2000 (MOM) data stream with the ScriptContext.Submit method.

Syntax

ScriptContext.CreatePerfData

Parameters

None.

Return Type

PerfData.

Example

To generate a new PerfData object, enter:

Dim MYperfdata
Set MYperfdata = ScriptContext.CreatePerfData

//Populate perfdata
MYperfdata.SourceComputer = "PERFDATACOMPUTER"

ScriptContext.Submit(MYperfdata)

This example creates a PerfData object with the CreatePerfData method, populates the PerfData object the using PerfData object properties, and submits the PerfData object to the MOM data stream with the Submit method.