MOMClassInstance.AddProperty Method

Updated: January 31, 2012

Applies To: System Center 2012 - Operations Manager

Adds a named value to the monitoring object.

MOMClassInstance.AddProperty(bstrName, bstrValue)

Parameters

 

Parameter Type Description

bstrName

String

The name (index) for the item.

bstrValue

String

The value for the item.

None.

This method populates the MOMClassInstance object by adding a name-value pair into the store. In the MOMClassInstance object, the bstrValue is associated with the bstrName. The parameters are used to refer to the class and property names.

An example of this method is shown in the MOMDiscoveryData.CreateClassInstance method.

Platforms: Requires Windows Server 2003, Windows Vista, or Windows Server 2008

Version: Requires Operations Manager 2007 or System Center 2012 – Operations Manager

Reference