XQuery.EvaluateToItem Method (IXPathNavigable)XQuery.EvaluateToItem Method (IXPathNavigable)XQuery::EvaluateToItem Method (IXPathNavigable^)
- XmlPrime 1.0
Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XQuery program,
or
null
a null reference (Nothing
in Visual Basic)
nullptr
if the query returns the empty sequence.
Syntax
Public Function EvaluateToItem( _ contextItem As System.Xml.XPath.IXPathNavigable _ ) As System.Xml.XPath.XPathItem
public System.Xml.XPath.XPathItem EvaluateToItem( System.Xml.XPath.IXPathNavigable contextItem )
public: System.Xml.XPath::XPathItem^ EvaluateToItem( System.Xml.XPath::IXPathNavigable^ contextItem )
Parameters
- contextItem
Type: System.Xml.XPath.IXPathNavigableSystem.Xml.XPath.IXPathNavigableSystem.Xml.XPath::IXPathNavigable^
The context item for the query.
Return Value
Type: System.Xml.XPath.XPathItemSystem.Xml.XPath.XPathItemSystem.Xml.XPath::XPathItem^
An XPathItemXPathItemXPathItem, or null
a null reference (Nothing
in Visual Basic)
nullptr
if the query returns the empty sequence.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | contextItem is null
a null reference (Nothing in Visual Basic)
nullptr . |
XdmExceptionXdmExceptionXdmException |
An error occurred evaluating the query. An XPST0004 error is raised if the query did not
return exactly one item.
|
LicenceExceptionLicenceExceptionLicenceException | This version of XmlPrime has expired. |