Condividi tramite


MOMClassInstance.AddProperty Method

Applies To: Operations Manager 2007 R2, Operations Manager 2007 SP1, System Center Operations Manager 2007

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

See Also

Reference

MOMClassInstance Object