MarkLogic XCC/.Net Library

SimpleQueryRunner Class

This is a very simple class that will submit an XQuery string to the server and return the result.

The main() method looks for two command-line args, a URL for the server (ContentSourceFactory.NewContentSource(URI)}) and a filename to read a query from. It loads the file, submits its contents to the server for evaluation and then prints the result sequence to stdout, one item per line.

The class has methods the could be used to set request options and to obtain the results as an array of Strings or as a real {@link ResultSequence}.

If you want to set external variables for a request, you can user the Request property to obtain a reference to the internal Request object and set the variable values on it before invoking Execute().

For a list of all members of this type, see SimpleQueryRunner Members.

System.Object
   Marklogic.Xcc.Examples.SimpleQueryRunner

[Visual Basic]
Public Class SimpleQueryRunner
[C#]
public class SimpleQueryRunner

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: Marklogic.Xcc.Examples

Assembly: MarklogicXcc (in MarklogicXcc.dll)

See Also

SimpleQueryRunner Members | Marklogic.Xcc.Examples Namespace