Represents a Windows feature selection in a PackageAction. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)


Visual Basic
Dim answerFileWindowsFeatureSelection1 As AnswerFileWindowsFeatureSelection


Visual Basic
Public Class AnswerFileWindowsFeatureSelection
		Inherits ObjectBase
		Implements IRemovable
public class AnswerFileWindowsFeatureSelection : ObjectBase, IRemovable
public ref class AnswerFileWindowsFeatureSelection : ObjectBase, IRemovable
public class AnswerFileWindowsFeatureSelection extends ObjectBase implements IRemovable
public class AnswerFileWindowsFeatureSelection extends ObjectBase implements IRemovable


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


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Vista, and Windows 2000

Target Platforms

See Also