ObjectName Property

Provides access to the name of the performance object for which the performance data was collected. Examples of performance objects are processes, sections of shared memory, and physical devices.

Syntax

ScriptContext.PerfData.ObjectName
ScriptContext.CreatePerfData.ObjectName

Access

Read Only When used with performance data provided to the script by the Microsoft Operations Manager 2000 product.
Read/Write When used with new performance data created with the ScriptContext.CreatePerfData Method.

Return Type

String.

Example

To access the name of the performance object of the performance data provided to the script by Microsoft Operations Manager 2000, enter:


Dim MYperfdata
Dim MYobjectname
set MYperfdata = ScriptContext.PerfData
set MYobjectname = MYPerfData.ObjectName