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

Serializes the result of the query to the specified TextWriterTextWriterTextWriter.

Syntax

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

Parameters

writer

Type: System.IO.TextWriterSystem.IO.TextWriterSystem.IO::TextWriter^

The TextWriterTextWriterTextWriter 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.
XdmExceptionXdmExceptionXdmException A dynamic error was encountered while evaluating the query.