HashIndex Class

Definition

Represents details of the hash index setting in an Azure DocumentDB database service.

public sealed class HashIndex : Microsoft.Azure.Documents.Index, ICloneable
Inheritance
Implements

Inherited Members

Microsoft.Azure.Documents.Index

Microsoft.Azure.Documents.JsonSerializable

Remarks

Can be used to serve queries like: SELECT * FROM docs d WHERE d.prop = 5.

Constructors

HashIndex(DataType)

Initializes a new instance of the HashIndex class with specified DataType for the Azure DocumentDB database service.

HashIndex(DataType, Int16)

Initializes a new instance of the HashIndex class with specified DataType and precision for the Azure DocumentDB database service.

Properties

DataType

Gets or sets the data type for which this index should be applied in the Azure DocumentDB database service.

Precision

Gets or sets the precision for this particular index in the Azure DocumentDB database service.

Methods

Clone()

Creates a copy of the hash index for the Azure DocumentDB database service.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)