I am wokring on a .NET C# application and based on oher parts of my program I will get a HostSystem name and then need to get a reference to the managed object for this one host to collect properties and to initiate tasks. I have been able to accompish this using views of a larger set of managed objects and then iterating through them to find the one with the name I need to work on. I even see that after interating I can create a ListView which I could use for future references.
Since I am working on a system with a large number of hosts and vms I was hoping there was a way to create a FilterSpec or something tha give me only the single HostSystem I want, but based on the many samples I have reviewed and other informaton I have read, it seem like the TraversalSpec, ObjectSpec, PropertyFilterSpec mechanism doesn't have a way to get down to a single ManagedObject without iterating through a list.
I am missing something obvious here or is iterating through a larger list of objects the only way to get down to a single one?