Return the specified child element using the same path notation as supported by FindElement(String), but return a read-only element if the specified element does not exist.

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

Syntax

C#
IXmlElement GetSafeElement(
	string path
)

Parameters

path
Type: System..::..String
Element path.

Return Value

The specified element (never null) as an object implementing IXmlElement for read-only use.

Remarks

This method never returns null.
This is a convenience method. Elements are accessed and manipulated via the list returned from ElementList.
If multiple child elements exist that have the specified name, then the behavior of this method is undefined, and it is permitted to return any one of the matching elements, to return null, or to throw an arbitrary runtime exception.

See Also