XmlElementConverter.GetChildrenOrThrow Method

Definition

Namespace: ASNA.DataGate.Common
Assembly: ASNA.QSys.DataGate.Client.dll

Gets all child elements of the current XmlElement with the specified name and namespace.

IEnumerable<XmlElement> GetChildrenOrThrow(string childName, string childNamespace)

Gets all child elements of the current XmlElement with the specified name and namespace. If the current element is null, throws an InvalidOperationException.

Remarks

Use this in cases where GetChildren() should never return null, i.e., when Element is not null.

IEnumerable<XmlElement> GetChildrenOrThrow(string childName, string childNamespace)

Parameters

Type Parameter name Description
String childName The name of the child elements to get.
String childNamespace The namespace of the child elements to get.

Returns

Type Description
IEnumerable`1 A collection of child elements with the specified name and namespace.

See Also