Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

Replace a child element with the same name as the specified element.

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

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