MOMScriptAPI.AddItem Method

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

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

See Also

Reference

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