Share via


MOMClassInstance.AddProperty Method

Applies To: System Center 2012 - Operations Manager

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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.

Return Value

None.

Remarks

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.

Requirements

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

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

See Also

Reference

MOMClassInstance Object