Share via


MOMScriptAPI.AddItem 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 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.

Return Value

None

Remarks

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.

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

MOMScriptAPI Object
MOMPropertyBag Object
MOMScriptAPI.CreatePropertyBag Method
MOMScriptAPI.CreateTypedPropertyBag Method