Delen via


RangeIndex Constructors

Definition

Overloads

RangeIndex(DataType)

Initializes a new instance of the RangeIndex class with specified DataType for the Azure Cosmos DB service.

RangeIndex(DataType, Int16)

Initializes a new instance of the RangeIndex class with specified DataType and precision for the Azure Cosmos DB service.

RangeIndex(DataType)

Initializes a new instance of the RangeIndex class with specified DataType for the Azure Cosmos DB service.

public RangeIndex (Microsoft.Azure.Documents.DataType dataType);
new Microsoft.Azure.Documents.RangeIndex : Microsoft.Azure.Documents.DataType -> Microsoft.Azure.Documents.RangeIndex
Public Sub New (dataType As DataType)

Parameters

dataType
DataType

Specifies the target data type for the index path specification.

Examples

Here is an example to instantiate RangeIndex class passing in the DataType:

RangeIndex rangeIndex = new RangeIndex(DataType.Number);

See also

Applies to

RangeIndex(DataType, Int16)

Initializes a new instance of the RangeIndex class with specified DataType and precision for the Azure Cosmos DB service.

public RangeIndex (Microsoft.Azure.Documents.DataType dataType, short precision);
new Microsoft.Azure.Documents.RangeIndex : Microsoft.Azure.Documents.DataType * int16 -> Microsoft.Azure.Documents.RangeIndex
Public Sub New (dataType As DataType, precision As Short)

Parameters

dataType
DataType

Specifies the target data type for the index path specification.

precision
Int16

Specifies the precision to be used for the data type associated with this index.

Examples

Here is an example to instantiate RangeIndex class passing in the DataType and precision:

RangeIndex rangeIndex = new RangeIndex(DataType.Number, -1);

See also

Applies to