Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Replace a child element with the same name as the specified element.

Namespace: Tangosol.Run.Xml
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
public static bool ReplaceElement(
	IXmlElement xmlParent,
	IXmlElement xmlReplace
)

Parameters

xmlParent
Type: Tangosol.Run.Xml..::..IXmlElement
Parent IXmlElement.
xmlReplace
Type: Tangosol.Run.Xml..::..IXmlElement
Element to replace with.

Return Value

true if matching child element has been found and replaced; false otherwise.

Remarks

If the child element does not exist the specified element is just added.

Exceptions

ExceptionCondition
System..::..InvalidOperationException If the parent element is immutable or otherwise cannot remove a child element.

See Also