XQuery.Serialize Method (XmlWriter)XQuery.Serialize Method (XmlWriter)XQuery::Serialize Method (XmlWriter^)

Serializes the result of the query to the specified XmlWriterXmlWriterXmlWriter.

Syntax

Public Sub Serialize( _
    writer As System.Xml.XmlWriter _
)
public void Serialize(
    System.Xml.XmlWriter writer
)
public:
void Serialize(
    System.Xml::XmlWriter^ writer
)
 

Parameters

writer

Type: System.Xml.XmlWriterSystem.Xml.XmlWriterSystem.Xml::XmlWriter^

The XmlWriterXmlWriterXmlWriter to which the result of the query will be written.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException writer is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmException A dynamic error was encountered while evaluating the query.