XQuery.Serialize Method (Stream, XPathItem)XQuery.Serialize Method (Stream, XPathItem)XQuery::Serialize Method (Stream^, XPathItem^)
Syntax
Public Sub Serialize( _ stream As System.IO.Stream, _ contextItem As System.Xml.XPath.XPathItem _ )
public void Serialize( System.IO.Stream stream, System.Xml.XPath.XPathItem contextItem )
public: void Serialize( System.IO::Stream^ stream, System.Xml.XPath::XPathItem^ contextItem )
Parameters
- stream
Type: System.IO.StreamSystem.IO.StreamSystem.IO::Stream^
The StreamStreamStream to which the result of the query will be written.
- contextItem
Type: System.Xml.XPath.XPathItemSystem.Xml.XPath.XPathItemSystem.Xml.XPath::XPathItem^
The context item for the query.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
stream or contextItem is null
a null reference (Nothing in Visual Basic)
nullptr .
|
InvalidOperationExceptionInvalidOperationExceptionInvalidOperationException | The query is an updating expression. |
XdmExceptionXdmExceptionXdmException | A dynamic error was encountered while evaluating the query. |