コード例 #1
0
 /// <summary>
 /// Delete/remove a snapshot.
 /// </summary>
 /// <param name="item">Snapshot to delete.</param>
 /// <returns>True if the snapshot was deleted.</returns>
 public void RemoveSnapshot(VMWareSnapshot item)
 {
     RemoveSnapshot(item, VMWareInterop.Timeouts.RemoveSnapshotTimeout);
 }
コード例 #2
0
 /// <summary>
 /// A VMWare snapshot constructor.
 /// </summary>
 /// <param name="vm">Virtual machine.</param>
 /// <param name="snapshot">Snapshot.</param>
 /// <param name="parent">Parent snapshot.</param>
 public VMWareSnapshot(IVM2 vm, ISnapshot snapshot, VMWareSnapshot parent)
     : base(snapshot)
 {
     _vm     = vm;
     _parent = parent;
 }
コード例 #3
0
 /// <summary>
 /// Delete/remove a snapshot.
 /// </summary>
 /// <param name="item">Snapshot to delete.</param>
 /// <param name="timeoutInSeconds">Timeout in seconds.</param>
 /// <returns>True if the snapshot was deleted.</returns>
 public void RemoveSnapshot(VMWareSnapshot item, int timeoutInSeconds)
 {
     item.RemoveSnapshot(timeoutInSeconds);
     RemoveAll();
 }