Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
XmlHelper..::.ReplaceElement Method
XmlHelper Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-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.0.0 (3.6.0.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

Exception | Condition
--- | ---
System..::.InvalidOperationException | If the parent element is immutable or otherwise cannot remove a child element.

# See Also

XmlHelper Class
Tangosol.Run.Xml Namespace