Condividi tramite


MOMPropertyBag.AddValue Method

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

Adds a named value to the property bag.

MOMPropertyBag.AddValue(bstrName, vValue)

Parameters

Parameter Type Description

bstrName

String

The item's name.

vValue

Variant

The item's value.

Return Value

None.

Remarks

This method populates the MOMPropertyBag object by adding a name-value pair into the store. In the MOMPropertyBag object, the vValue parameter is associated with the bstrName parameter.

An example of this method is shown in the MOMScriptAPI.CreatePropertyBag method and the MOMScriptAPI.CreateTypedPropertyBag method.

Requirements

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

Version: Requires Operations Manager 2007

See Also

Reference

MOMPropertyBag Object