Exemple #1
0
 public static List <SnapshotOfVirtualSystem> GetSnapshotOfVirtualSystemList(ComputerSystem ComputerSystem)
 {
     return
         (SnapshotOfVirtualSystem.GetInstances()
          .Cast <SnapshotOfVirtualSystem>()
          .Where((sovs) => string.Compare(sovs.Antecedent.Path, ComputerSystem.Path.Path, true, CultureInfo.InvariantCulture) == 0)
          .ToList());
 }
Exemple #2
0
 public static List <VirtualSystemSettingData> GetVirtualSystemSettingDataListThroughSnapshotOfVirtualSystem(ComputerSystem ComputerSystem)
 {
     return
         (SnapshotOfVirtualSystem.GetInstances()
          .Cast <SnapshotOfVirtualSystem>()
          .Where((sovs) => string.Compare(sovs.Antecedent.Path, ComputerSystem.Path.Path, true, CultureInfo.InvariantCulture) == 0)
          .Select((sovs) => new VirtualSystemSettingData(sovs.Dependent))
          .ToList());
 }