Merge all setting overrides in an instance of AnswerFileComponentSetting into another configuration pass in this AnswerFile instance. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Dim xmlString As String
Dim configurationPass As ConfigurationPass
Dim failOnError As Boolean
Dim answerFile1 As AnswerFile
answerFile1.MergeComponentSettingXml(xmlString, configurationPass, failOnError)

Syntax

Visual Basic
Public Sub MergeComponentSettingXml( _
		ByVal xmlString As String, _
		ByVal configurationPass As ConfigurationPass, _
		ByVal failOnError As Boolean _
)
C#
public void MergeComponentSettingXml(
		string xmlString, 
		ConfigurationPass configurationPass, 
		bool failOnError
);
C++
public:
void MergeComponentSettingXml(
		String^ xmlString,
		ConfigurationPass configurationPass,
		bool failOnError
);
J#
public void MergeComponentSettingXml(
		System.String xmlString, 
		ConfigurationPass configurationPass, 
		boolean failOnError
);
JScript
public function MergeComponentSettingXml(
		 xmlString : String, 
		 configurationPass : ConfigurationPass, 
		 failOnError : Boolean
) : Void;

Parameters

xmlString

The XML string that represents all setting overrides in an instance of AnswerFileComponentSetting

configurationPass

Configuration pass into which the setting overrides will be merged.

failOnError

If this value is true, an System.ArgumentException will be thrown if an override in the xml string cannot be added.

Remarks

The XML string can be obtained by calling GetXml.

During the merge operation, if a duplicate setting already exists in the component, the ConfirmOverwriteXml event is raised.


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