MarkLogic XCC/.Net Library |

# Session.NewAdhocQuery Method

Create a new AdhocQuery object and initialize it with the given query string.

#### Overload List

Create a new AdhocQuery object and initialize it with the given query string.

> AdhocQuery NewAdhocQuery(string);

Create a new AdhocQuery object and initialize it with the given query string and RequestOptions object.

> AdhocQuery NewAdhocQuery(string,RequestOptions);

#### See Also

Session Interface | Marklogic.Xcc Namespace