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

Serializes the result of the query to the specified TextWriterTextWriterTextWriter.

Syntax

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

Parameters

writer

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

The TextWriterTextWriterTextWriter 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.