InstanceName Property

Provides access to the name of the performance counter instance used to report the performance data.

Syntax

ScriptContext.PerfData.InstanceName
ScriptContext.CreatePerfData.InstanceName

Access

Read Only When used with an 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 counter instance used to report the performance data provided to the script by Microsoft Operations Manager 2000, enter:


Dim MYperfdata
Dim MYinstancename
set MYperfdata = ScriptContext.PerfData
set MYinstancename = MYPerfData.InstanceName