Click or drag to resize

SimpleElementEnsureElement Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Ensure that a child element exists.

Namespace:  Tangosol.Run.Xml
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public virtual IXmlElement EnsureElement(
	string path
)

Parameters

path
Type: SystemString
Element path.

Return Value

Type: IXmlElement
The existing or new IXmlElement object.

Implements

IXmlElementEnsureElement(String)
Exceptions
ExceptionCondition
ArgumentException If the name is null or if any part of the path is not a legal XML tag name.
InvalidOperationException If any element in the path is immutable or otherwise can not add a child element.
Remarks
This is a convenience method. It combines the functionality of FindElement(String) and AddElement(String). If any part of the path does not exist create new child elements to match the path.
See Also