Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)
Usage
Visual Basic |
---|
Dim answerFileWindowsFeatureSelection1 As AnswerFileWindowsFeatureSelection |
Syntax
Visual Basic |
---|
Public Class AnswerFileWindowsFeatureSelection Inherits ObjectBase Implements IRemovable |
C# |
---|
public class AnswerFileWindowsFeatureSelection : ObjectBase, IRemovable |
C++ |
---|
public ref class AnswerFileWindowsFeatureSelection : ObjectBase, IRemovable |
J# |
---|
public class AnswerFileWindowsFeatureSelection extends ObjectBase implements IRemovable |
JScript |
---|
public class AnswerFileWindowsFeatureSelection extends ObjectBase implements IRemovable |
Remarks
Use AnswerFileWindowsFeatureSelection to change the installation state of a Windows feature within a package. The package can be inside an offline Windows Image or can be a package you get from the Windows Update Web site.
All Windows features are defined in a single package, the Windows Foundation Package.
To enable or disable a certain Windows feature, first create an instance of PackageAction that configures the Windows Foundation Package, then enable and disable individual Windows feature in its WindowsFeatureSelections property.
The Windows features that come with offline Windows images are usually contained in a single package called Windows Foundation Package. The identity of the Windows Foundation Package can be retrieved using the WindowsFoundationPackageId property.
Inheritance Hierarchy
Microsoft.ComponentStudio.Common.ObjectBase
Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileWindowsFeatureSelection