コード例 #1
0
 /// <summary>
 /// Removes a package from an image.
 /// </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 DismOpenSession Function.</param>
 /// <param name="packageName">The package name.</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>
 /// <exception cref="DismRebootRequiredException">When the operation requires a reboot to complete.</exception>
 public static void RemovePackageByName(DismSession session, string packageName, Dism.DismProgressCallback progressCallback)
 {
     DismApi.RemovePackageByName(session, packageName, progressCallback, null);
 }
コード例 #2
0
 /// <summary>
 /// Removes a package from an image.
 /// </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 DismOpenSession Function.</param>
 /// <param name="packageName">The package name.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="DismRebootRequiredException">When the operation requires a reboot to complete.</exception>
 public static void RemovePackageByName(DismSession session, string packageName)
 {
     DismApi.RemovePackageByName(session, packageName, null);
 }