diff --git a/src/Microsoft.Dism/DismApi.EnableFeature.cs b/src/Microsoft.Dism/DismApi.EnableFeature.cs
index 86241a6..25f7842 100644
--- a/src/Microsoft.Dism/DismApi.EnableFeature.cs
+++ b/src/Microsoft.Dism/DismApi.EnableFeature.cs
@@ -147,6 +147,64 @@ public static void EnableFeatureByPackagePath(DismSession session, string featur
EnableFeature(session, featureName, packagePath, DismPackageIdentifier.Path, limitAccess, enableAll, sourcePaths, progressCallback, userData);
}
+ ///
+ /// Enables a feature from the specified package path.
+ ///
+ /// 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.
+ /// The name of the feature that is being enabled. To enable more than one feature, separate each feature name with a semicolon.
+ /// Specifies whether Windows Update (WU) should be contacted as a source location for downloading files if none are found in other specified locations. Before checking WU, DISM will check for the files in the SourcePaths provided and in any locations specified in the registry by group policy. If the files required to enable the feature are still present on the computer, this flag is ignored.
+ /// Specifies whether to enable all dependencies of the feature. If the specified feature or any one of its dependencies cannot be enabled, none of them will be changed from their existing state.
+ /// When a failure occurs.
+ public static void EnableFeature(DismSession session, string featureName, bool limitAccess, bool enableAll)
+ {
+ EnableFeature(session, featureName, null, DismPackageIdentifier.None, limitAccess, enableAll, null, null, null);
+ }
+
+ ///
+ /// Enables a feature from the specified package path.
+ ///
+ /// 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.
+ /// The name of the feature that is being enabled. To enable more than one feature, separate each feature name with a semicolon.
+ /// Specifies whether Windows Update (WU) should be contacted as a source location for downloading files if none are found in other specified locations. Before checking WU, DISM will check for the files in the SourcePaths provided and in any locations specified in the registry by group policy. If the files required to enable the feature are still present on the computer, this flag is ignored.
+ /// Specifies whether to enable all dependencies of the feature. If the specified feature or any one of its dependencies cannot be enabled, none of them will be changed from their existing state.
+ /// A list of source locations to check for files needed to enable the feature.
+ /// When a failure occurs.
+ public static void EnableFeature(DismSession session, string featureName, bool limitAccess, bool enableAll, List sourcePaths)
+ {
+ EnableFeature(session, featureName, null, DismPackageIdentifier.None, limitAccess, enableAll, sourcePaths, null, null);
+ }
+
+ ///
+ /// Enables a feature from the specified package path.
+ ///
+ /// 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.
+ /// The name of the feature that is being enabled. To enable more than one feature, separate each feature name with a semicolon.
+ /// Specifies whether Windows Update (WU) should be contacted as a source location for downloading files if none are found in other specified locations. Before checking WU, DISM will check for the files in the SourcePaths provided and in any locations specified in the registry by group policy. If the files required to enable the feature are still present on the computer, this flag is ignored.
+ /// Specifies whether to enable all dependencies of the feature. If the specified feature or any one of its dependencies cannot be enabled, none of them will be changed from their existing state.
+ /// A list of source locations to check for files needed to enable the feature.
+ /// A progress callback method to invoke when progress is made.
+ /// When a failure occurs.
+ public static void EnableFeature(DismSession session, string featureName, bool limitAccess, bool enableAll, List sourcePaths, Microsoft.Dism.DismProgressCallback progressCallback)
+ {
+ EnableFeature(session, featureName, null, DismPackageIdentifier.None, limitAccess, enableAll, sourcePaths, progressCallback, null);
+ }
+
+ ///
+ /// Enables a feature from the specified package path.
+ ///
+ /// 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.
+ /// The name of the feature that is being enabled. To enable more than one feature, separate each feature name with a semicolon.
+ /// Specifies whether Windows Update (WU) should be contacted as a source location for downloading files if none are found in other specified locations. Before checking WU, DISM will check for the files in the SourcePaths provided and in any locations specified in the registry by group policy. If the files required to enable the feature are still present on the computer, this flag is ignored.
+ /// Specifies whether to enable all dependencies of the feature. If the specified feature or any one of its dependencies cannot be enabled, none of them will be changed from their existing state.
+ /// A list of source locations to check for files needed to enable the feature.
+ /// A progress callback method to invoke when progress is made.
+ /// Optional user data to pass to the DismProgressCallback method.
+ /// When a failure occurs.
+ public static void EnableFeature(DismSession session, string featureName, bool limitAccess, bool enableAll, List sourcePaths, Microsoft.Dism.DismProgressCallback progressCallback, object userData)
+ {
+ EnableFeature(session, featureName, null, DismPackageIdentifier.None, limitAccess, enableAll, sourcePaths, progressCallback, userData);
+ }
+
///
/// Enables a feature from the specified package path.
///
diff --git a/src/Microsoft.Dism/PublicAPI.Shipped.txt b/src/Microsoft.Dism/PublicAPI.Shipped.txt
index 1cb729e..afc8c1a 100644
--- a/src/Microsoft.Dism/PublicAPI.Shipped.txt
+++ b/src/Microsoft.Dism/PublicAPI.Shipped.txt
@@ -334,6 +334,10 @@ static Microsoft.Dism.DismApi.EnableFeatureByPackagePath(Microsoft.Dism.DismSess
static Microsoft.Dism.DismApi.EnableFeatureByPackagePath(Microsoft.Dism.DismSession session, string featureName, string packagePath, bool limitAccess, bool enableAll, System.Collections.Generic.List sourcePaths) -> void
static Microsoft.Dism.DismApi.EnableFeatureByPackagePath(Microsoft.Dism.DismSession session, string featureName, string packagePath, bool limitAccess, bool enableAll, System.Collections.Generic.List sourcePaths, Microsoft.Dism.DismProgressCallback progressCallback) -> void
static Microsoft.Dism.DismApi.EnableFeatureByPackagePath(Microsoft.Dism.DismSession session, string featureName, string packagePath, bool limitAccess, bool enableAll, System.Collections.Generic.List sourcePaths, Microsoft.Dism.DismProgressCallback progressCallback, object userData) -> void
+static Microsoft.Dism.DismApi.EnableFeature(Microsoft.Dism.DismSession session, string featureName, bool limitAccess, bool enableAll) -> void
+static Microsoft.Dism.DismApi.EnableFeature(Microsoft.Dism.DismSession session, string featureName, bool limitAccess, bool enableAll, System.Collections.Generic.List sourcePaths) -> void
+static Microsoft.Dism.DismApi.EnableFeature(Microsoft.Dism.DismSession session, string featureName, bool limitAccess, bool enableAll, System.Collections.Generic.List sourcePaths, Microsoft.Dism.DismProgressCallback progressCallback) -> void
+static Microsoft.Dism.DismApi.EnableFeature(Microsoft.Dism.DismSession session, string featureName, bool limitAccess, bool enableAll, System.Collections.Generic.List sourcePaths, Microsoft.Dism.DismProgressCallback progressCallback, object userData) -> void
static Microsoft.Dism.DismApi.GetCapabilities(Microsoft.Dism.DismSession session) -> Microsoft.Dism.DismCapabilityCollection
static Microsoft.Dism.DismApi.GetCapabilityInfo(Microsoft.Dism.DismSession session, string capabilityName) -> Microsoft.Dism.DismCapabilityInfo
static Microsoft.Dism.DismApi.GetDriverInfo(Microsoft.Dism.DismSession session, string driverPath) -> Microsoft.Dism.DismDriverCollection