MOMScriptAPI.AddItem Method

Updated: January 31, 2012

Applies To: System Center 2012 - Operations Manager

Adds a MOMPropertyBag object or a MOMDiscoveryData object into the in-memory array of a MOMScriptAPI object

MOMScriptAPI.AddItem(dataitem)

Parameters

 

Parameter Type Description

dataitem

object

MOMPropertyBag object or MOMDiscoveryData object.

None

You must not combine MOMPropertyBag objects with MOMDiscoveryData objects in the in-memory array. If such a combination is used, the module does not produce output and the rule fails and unloads.

For an example of how to use AddItem, see the MOMScriptAPI.CreateTypedPropertyBag topic.

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

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

Reference