Share via


SqlQuerySpec Class

Definition

Represents a SQL query in the Azure Cosmos DB service.

[System.Runtime.Serialization.DataContract]
public sealed class SqlQuerySpec
[<System.Runtime.Serialization.DataContract>]
type SqlQuerySpec = class
Public NotInheritable Class SqlQuerySpec
Inheritance
SqlQuerySpec
Attributes

Constructors

SqlQuerySpec()

Initializes a new instance of the SqlQuerySpec class for the Azure Cosmos DB service.

SqlQuerySpec(String, SqlParameterCollection)

Initializes a new instance of the SqlQuerySpec class for the Azure Cosmos DB service.

SqlQuerySpec(String)

Initializes a new instance of the SqlQuerySpec class for the Azure Cosmos DB service.

Properties

Parameters

Gets or sets the SqlParameterCollection instance, which represents the collection of Azure Cosmos DB query parameters.

QueryText

Gets or sets the text of the Azure Cosmos DB database query.

Methods

ShouldSerializeParameters()

Returns a value that indicates whether the Azure Cosmos DB database Parameters property should be serialized.

Applies to