IQueryRequest Statement Method Couchbase .NET SDK 2.0
Sets a N1QL statement to be executed.

Namespace: Couchbase.N1QL
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
IQueryRequest Statement(
	string statement
)

Parameters

statement
Type: System String
Any valid N1QL statement for a POST request, or a read-only N1QL statement (SELECT, EXPLAIN) for a GET request.

Return Value

Type: IQueryRequest
A reference to the current IQueryRequest for method chaining.
Remarks
If both prepared and statement are present and non-empty, an error is returned.
Remarks
Required if prepared not provided.
See Also