Ejemplo n.º 1
0
 // Tests the RemoveRoleVhd method and displays the list of components that are removed
 static void TestRemoveRoleVhd()
 {
     List<string> componentsToRemove = new List<string>();
     componentsToRemove.Add("Test-Feature");
     RemoveRoleSample removeSample = new RemoveRoleSample();
     List<CimInstance> removeRoleResult = removeSample.RemoveRoleVhd(componentsToRemove, vhdPath);
     if (removeRoleResult.Count > 0)
     {
         Console.WriteLine("The following components are uninstalled:");
         ServerComponentsPrinter.DisplayResult(removeRoleResult);
     }
 }
        // Tests the RemoveRoleVhd method and displays the list of components that are removed
        static void TestRemoveRoleVhd()
        {
            List <string> componentsToRemove = new List <string>();

            componentsToRemove.Add("Test-Feature");
            RemoveRoleSample   removeSample     = new RemoveRoleSample();
            List <CimInstance> removeRoleResult = removeSample.RemoveRoleVhd(componentsToRemove, vhdPath);

            if (removeRoleResult.Count > 0)
            {
                Console.WriteLine("The following components are uninstalled:");
                ServerComponentsPrinter.DisplayResult(removeRoleResult);
            }
        }