Click or drag to resize

IDatabaseServiceElements Method

Returns a filtered collection of the child elements of the specified element in document order. Only elements that have a matching XName are included in the collection.

Namespace: Aml.Engine.Services.Interfaces
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
IEnumerable<XElement> Elements(
	XElement element,
	XName name,
	bool insert = false
)

Parameters

element  XElement
The element.
name  XName
The XName to match.
insert  Boolean  (Optional)
If set to true, the child elements are added to the specified element.

Return Value

IEnumerableXElement
An IEnumerableT of XElement containing the children of the XElement that have a matching XName, in document order.
Remarks
If the child elements are not already added to the specified element, the database, providing the element is searched for the named children.
See Also