Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01

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

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

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