MOMScriptAPI.ReturnItems 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.]
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 or System Center 2012 – Operations Manager
See Also
Reference
MOMScriptAPI Object
MOMScriptAPI.Return Method
MOMScriptAPI.AddItem Method
MOMScriptAPI.CreateDiscoveryData Method
MOMScriptAPI.CreatePropertyBag Method
MOMScriptAPI.CreateTypedPropertyBag Method