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

Serializes the result of the query to the specified XmlWriterXmlWriterXmlWriter.

Syntax

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

Parameters

writer

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

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

settings

Type: XmlPrime.DynamicContextSettingsXmlPrime.DynamicContextSettingsXmlPrime::DynamicContextSettings^

The settings of the dynamic evaluation context.

Exceptions

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