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)

Usage

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

Syntax

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

Parameters

xmlString

XML string to be merged

failOnError

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

Remarks

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.

Platforms

Development Platforms

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

Target Platforms

See Also

[an error occurred while processing this directive]