ItemgetItemsByXPath Method |
Gets an item (single or collection) resolving xpath specified.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
Syntaxpublic Item getItemsByXPath(
string xpath
)
Public Function getItemsByXPath (
xpath As String
) As Item
public Item getItemsByXPath(
String xpath
)
public function getItemsByXPath(
xpath : String
) : Item
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.
ExceptionsException | Condition |
---|
Exception | Item's internal structure is wrong (e.g. this.dom == null) |
ArgumentException | Specified 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