/// <summary> /// Gets the parent features of a specified feature. /// </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 OpenSession Function.</param> /// <param name="featureName">The name of the feature that you want to find the parent of.</param> /// <param name="packagePath">An absolute path to a .cab file.</param> /// <returns>A <see cref="DismFeatureCollection"/> object containing a collection of <see cref="DismFeature"/> objects.</returns> /// <exception cref="DismException">When a failure occurs.</exception> public static DismFeatureCollection GetFeatureParentByPath(DismSession session, string featureName, string packagePath) { return(DismApi.GetFeatureParent(session, featureName, packagePath, DismPackageIdentifier.Path)); }