Share via


MOMPropertyBag.AddValue 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 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 or System Center 2012 – Operations Manager

See Also

Reference

MOMPropertyBag Object