Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)
Usage
Visual Basic |
---|
Dim xmlString As String Dim failOnError As Boolean Dim answerFileSettingOverride1 As AnswerFileSettingOverride answerFileSettingOverride1.MergeXml(xmlString, failOnError) |
Syntax
Visual Basic |
---|
Public NotOverridable Sub MergeXml( _ ByVal xmlString As String, _ ByVal failOnError As Boolean _ ) |
C# |
---|
public sealed void MergeXml( string xmlString, bool failOnError ); |
C++ |
---|
public: virtual void arbitrary-name( String^ xmlString, bool failOnError ) sealed = MergeXml; |
J# |
---|
public final void MergeXml( System.String xmlString, boolean failOnError ); |
JScript |
---|
public final function MergeXml( xmlString : String, failOnError : Boolean ) : Void; |
Parameters
- xmlString
-
The XML string that represents setting overrides in another instance of AnswerFileSettingOverride.
- failOnError
-
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.
Remarks
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.