Пример #1
0
 /// <summary>
 /// Commits the changes made to a Windows® image in a mounted .wim or .vhd file.
 /// </summary>
 /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the <see cref="OpenOfflineSession(string)"/> method.</param>
 /// <param name="discardChanges">true or false to discard changes made to the image.</param>
 /// <param name="progressCallback">A progress callback method to invoke when progress is made.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="OperationCanceledException">When the user requested the operation be canceled.</exception>
 public static void CommitImage(DismSession session, bool discardChanges, Microsoft.Dism.DismProgressCallback progressCallback)
 {
     DismApi.CommitImage(session, discardChanges, progressCallback, null);
 }
Пример #2
0
 /// <summary>
 /// Commits the changes made to a Windows® image in a mounted .wim or .vhd file.
 /// </summary>
 /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the <see cref="OpenOfflineSession(string)"/> method.</param>
 /// <param name="discardChanges">true or false to discard changes made to the image.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 public static void CommitImage(DismSession session, bool discardChanges)
 {
     DismApi.CommitImage(session, discardChanges, null);
 }