MarkLogic XCC/.Net Library |

# SimpleQueryRunner.ExecuteToSingleString Method

Submit the given query string and return a single String which is the concatenation of all the ResultItems, separated by the given separator string.

[Visual Basic]
Overridable Public Function ExecuteToSingleString( _
ByVal query As String, _
ByVal separator As String _
) As String
[C#]
public virtual string ExecuteToSingleString(
string query,
string separator
);

#### Parameters

query
  XQuery code as a String, to be evaluated by the server.
separator
  A String value which will be inserted in the final string between each item of the sequence. A value of null is equivalent to the empty string.

#### Return Value

A String consisting of the ResultItem.AsString() value of each item with the separator string inserted between each instance.

#### See Also

SimpleQueryRunner Class | Marklogic.Xcc.Examples Namespace