Merges the XML string obtained by the GetXml method into the current object. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)


Visual Basic
Dim xmlString As String
Dim failOnError As Boolean
Dim answerFileSettingOverride1 As AnswerFileSettingOverride
answerFileSettingOverride1.MergeXml(xmlString, failOnError)


Visual Basic
Public NotOverridable Sub MergeXml( _
		ByVal xmlString As String, _
		ByVal failOnError As Boolean _
public sealed void MergeXml(
		string xmlString, 
		bool failOnError
virtual void arbitrary-name(
		String^ xmlString,
		bool failOnError
) sealed = MergeXml;
public final void MergeXml(
		System.String xmlString, 
		boolean failOnError
public final function MergeXml(
		 xmlString : String, 
		 failOnError : Boolean
) : Void;



The XML string that represents setting overrides in another instance of AnswerFileSettingOverride.


If this value is true, the method will throw an exception if an override in the XML string cannot be added to the current instance.


The GetXml and MergeXml methods provide a way to copy from one AnswerFileSettingOverride object to another. These methods will enumerate all setting overrides in the XML string and merge them into the current object.

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

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

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