C# Script for Obtaining Information with ResolvePath and GetContents on Vmware ESX

Posted on 2:46 PM by Bharathvn

string path = "/vm";
string handle = vma_.ResolvePath(path);
ViewContents contentsXML = vma_.GetContents(handle);
Container objContainer = (Container) contentsXML.body;