Click or drag to resize

ItemgetItemsByXPath Method

Gets an item (single or collection) resolving xpath specified.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public Item getItemsByXPath(
	string xpath
)

Parameters

xpath
Type: SystemString
XPath for selecting <Item> nodes

Return Value

Type: Item
Instance of the class that represents either a single item or a collection of items. The collection could be empty. The returned item shares its dom with this item, i.e. returned item dom and this.dom reference the same instance of ArasXmlDocument.
Exceptions
ExceptionCondition
ExceptionItem's internal structure is wrong (e.g. this.dom == null)
ArgumentExceptionSpecified XPath doesn't resolve to <Item> nodes.
Remarks
The method applies the specified xpath on this.node if it's set or on this.dom otherwise. If a single <Item> node was found, it's assigned to the node. If 0 or more than 1 <Item> nodes were found, it's referenced by the nodeList of the returned item.
See Also