I discovered some very handy builtin methods to find vms by uuid (among other options) called FindAllByUuid but I can't figure out how to use it.
This page had the details
www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.SearchIndex.html
but i'm going in circles trying to use it. My code is something like this but no combination I can think of works.
var myServiceContent = new VcServiceContent();
myServiceContent.SearchIndex = ??????
myServiceContent.SearchIndex.FindAllByUuid("","42191c8c-ac11-f1f6-9476-d520a64d2305",true,true);
Can anyone tell me how to use the FindAllByUuid?
Thanks