static void Test_GetHostDetails(Host host) { Console.WriteLine("Retrieving host details..."); XenConnect con = new XenConnect(host, testServerId, testip); XenError status = con.getHostDetails(); if (status.Type == XenError.XenErrorType.SUCCESS) { Console.WriteLine("Host details retrieved successfully"); } else { Console.WriteLine("Unable to retrieve the hosts details " + status.Message); } }