Merges setting overrides from another instance of AnswerFileComponentSetting to the current instance. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)


Visual Basic
Dim xmlString As String
Dim failOnError As Boolean
Dim answerFileComponentSetting1 As AnswerFileComponentSetting
answerFileComponentSetting1.MergeXml(xmlString, failOnError)


Visual Basic
Public Sub MergeXml( _
		ByVal xmlString As String, _
		ByVal failOnError As Boolean _
public void MergeXml(
		string xmlString, 
		bool failOnError
void MergeXml(
		String^ xmlString,
		bool failOnError
public void MergeXml(
		System.String xmlString, 
		boolean failOnError
public function MergeXml(
		 xmlString : String, 
		 failOnError : Boolean
) : Void;



XML string to be merged


If true, the method fails when an override in the XML string cannot be added.


This method is primarily used by the Image Manager user interface and is documented for reference purposes only.

GetXml and MergeXml provide ways to copy setting overrides from one instance of AnswerFileComponentSetting to another. The method will enumerate all setting overrides in the XML string and merge it to the current object in one of two ways.

  • If the setting override in xmlString is a descendent of the current object, the descendent will be overridden by the values defined in the XML string.

  • If the setting override in xmlString is not a descendent of the current object, a descendent will be created using the value defined in the XML string.

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