XQuery.EvaluateUpdate Method (XPathItem, IResultDocumentHandler)XQuery.EvaluateUpdate Method (XPathItem, IResultDocumentHandler)XQuery::EvaluateUpdate Method (XPathItem^, IResultDocumentHandler^)
Evaluates an updating XQuery program with the specified context item and result document handler.
Syntax
Public Sub EvaluateUpdate( _ contextItem As System.Xml.XPath.XPathItem, _ resultDocumentHandler As IResultDocumentHandler _ )
public void EvaluateUpdate( System.Xml.XPath.XPathItem contextItem, IResultDocumentHandler resultDocumentHandler )
public: void EvaluateUpdate( System.Xml.XPath::XPathItem^ contextItem, IResultDocumentHandler^ resultDocumentHandler )
Parameters
- contextItem
Type: System.Xml.XPath.XPathItemSystem.Xml.XPath.XPathItemSystem.Xml.XPath::XPathItem^
The context item.
- resultDocumentHandler
Type: XmlPrime.IResultDocumentHandlerXmlPrime.IResultDocumentHandlerXmlPrime::IResultDocumentHandler^
The result document handler.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | contextItem or resultDocumentHandler are null
a null reference (Nothing in Visual Basic)
nullptr
|
InvalidOperationExceptionInvalidOperationExceptionInvalidOperationException |
The query is not updating (IsUpdateIsUpdateIsUpdate is false False false ).
|
XdmExceptionXdmExceptionXdmException | An error occurred evaluating the query. |
LicenceExceptionLicenceExceptionLicenceException | This version of XmlPrime has expired. |
Remarks
This method is suitable for queries which use fn:put
.