 | 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.InterfacesAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
SyntaxIEnumerable<XElement> Elements(
XElement element,
XName name,
bool insert = false
)
Function Elements (
element As XElement,
name As XName,
Optional insert As Boolean = false
) As IEnumerable(Of XElement)
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