The following procedures show how to retrieve properties of selected managed objects by using the RetrievePropertiesEx method. Two use cases are shown.

A simple use case is to retrieve properties from a managed object for which a reference has been supplied. You need only create a PropertyFilterSpec that contains a PropertySpec to identify the property to retrieve and an ObjectSpec to identify the managed object. Pass this PropertyFilterSpec to the RetrievePropertiesEx method and get the property value from the structured result.

A more complicated use case retrieves properties from a set of managed objects found in the inventory hierarchy. For this use case, you create a View managed object that provides a path to all the target managed objects within one traversal step. You need to create a PropertyFilterSpec that contains a PropertySpec to identify the property to retrieve and an ObjectSpec that identifies the View object and also contains a TraversalSpec to describe the path from the View to its children. Pass this PropertyFilterSpec to the RetrievePropertiesEx method and get the property value from the structured result.