Share via


MOMScriptAPI.ReturnItems Method

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

Submits multiple MOMDiscoveryData or MOMPropertyBag objects back to Operations Manager and completes the script.

MOMScriptAPI.ReturnItems

Parameters

None.

Return Value

None.

Remarks

The ReturnItems method submits objects to Operations Manager. For this method to be successful, objects must have been previously added to the in-memory array with MOMScriptAPI.AddItem. The objects must either be a group of MOMDiscoveryData objects or MOMPropertyBag objects, but never both.

If you are running this script outside Operations Manager, this XML string can be displayed in a console window. The Management Pack must be prepared and inserted as a rule to be run from Operations Manager.

To return a single MOMDiscoveryData or MOMPropertyBag object back to Operations Manager, consider using the MOMScriptAPI.Return method.

For an example of how to use ReturnItems, 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
MOMScriptAPI.Return Method
MOMScriptAPI.AddItem Method
MOMScriptAPI.CreateDiscoveryData Method
MOMScriptAPI.CreatePropertyBag Method
MOMScriptAPI.CreateTypedPropertyBag Method