MOMPropertyBag.AddValue Method

Updated: January 31, 2012

Applies To: System Center 2012 - Operations Manager

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.

None.

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.

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

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

Reference