Creates a configuration set, copies the configuration set contents to a target folder, and specifies the sensitive data enumeration value. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Dim targetFolder As String
Dim sourceOemFolder As String
Dim sensitiveDataOption As SensitiveDataOption
Dim returnValue As CpiResult
Dim answerFile1 As AnswerFile
returnValue = answerFile1.CreateConfigurationSet(targetFolder, sourceOemFolder, sensitiveDataOption)

Syntax

Visual Basic
Overloads Public Function CreateConfigurationSet( _
		ByVal targetFolder As String, _
		ByVal sourceOemFolder As String, _
		ByVal sensitiveDataOption As SensitiveDataOption _
) As CpiResult
C#
public CpiResult CreateConfigurationSet(
		string targetFolder, 
		string sourceOemFolder, 
		SensitiveDataOption sensitiveDataOption
);
C++
public:
CpiResult^ CreateConfigurationSet(
		String^ targetFolder,
		String^ sourceOemFolder,
		SensitiveDataOption sensitiveDataOption
);
J#
public CpiResult CreateConfigurationSet(
		System.String targetFolder, 
		System.String sourceOemFolder, 
		SensitiveDataOption sensitiveDataOption
);
JScript
public function CreateConfigurationSet(
		 targetFolder : String, 
		 sourceOemFolder : String, 
		 sensitiveDataOption : SensitiveDataOption
) : CpiResult;

Parameters

targetFolder

Target folder string

sourceOemFolder

Source OEM folder string

sensitiveDataOption

Specifies the sensitive data enumeration.

Return Value

The operation result of creating the configuration set.

Remarks

This overloaded method includes an option to specify if the answer file contains sensitive data. Sensitive data in an answer file includes local account passwords. When the answer file is saved, local account password information is obscured in the answer file.

System.Security.SecurityException is thrown if any files referenced in the $OEM$ source folder are inaccessible during creation.

System.InvalidOperationException is thrown if the answer file is already inside a configuration set.


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