Represents a Windows feature selection in a PackageAction. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
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

System.Object
   Microsoft.ComponentStudio.Common.ObjectBase
    Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileWindowsFeatureSelection

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.

Platforms

Development Platforms

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

Target Platforms

See Also