XQuery.Serialize Method (string, DynamicContextSettings)XQuery.Serialize Method (String, DynamicContextSettings)XQuery::Serialize Method (String^, DynamicContextSettings^)

Serializes the result of the query to the specified file.

Syntax

Public Sub Serialize( _
    outputFileName As String, _
    settings As DynamicContextSettings _
)
public void Serialize(
    string outputFileName,
    DynamicContextSettings settings
)
public:
void Serialize(
    String^ outputFileName, 
    DynamicContextSettings^ settings
)
 

Parameters

outputFileName

Type: System.StringSystem.StringSystem::String^

The name of the file 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 outputFileName 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.