Gathering Data with a ViewManager Object
Use one of the
ViewManager methods to obtain
information about
Task objects and references while
the session is running. The
ViewManager
’s
ListView method
allows you to customize your view with an input object list, the
ContainerView method
lets you view all objects in a folder, datacenter, resource pool,
or other data container, and the
InventoryView
method lets you monitor the entire inventory. The smallest view
you can create will be the most efficient way to retrieve task data.
The ViewManager has the following property:
viewList – An array of view references. Each array entry is a managed object reference to a view created by this View Manager.
See Retrieve Properties with the PropertyCollector for an example that uses the ContainerView method to access Inventory data.