Index.Hash
Method
Definition
Overloads
| Hash(DataType) |
Returns an instance of the HashIndex class with specified DataType for the Azure DocumentDB database service. |
| Hash(DataType, Int16) |
Returns an instance of the HashIndex class with specified DataType and precision for the Azure DocumentDB database service. |
Hash(DataType)
Returns an instance of the HashIndex class with specified DataType for the Azure DocumentDB database service.
public static Microsoft.Azure.Documents.HashIndex Hash (Microsoft.Azure.Documents.DataType dataType);
Parameters
- dataType
- DataType
Specifies the target data type for the index path specification.
Returns
Hash(DataType, Int16)
Returns an instance of the HashIndex class with specified DataType and precision for the Azure DocumentDB database service.
public static Microsoft.Azure.Documents.HashIndex Hash (Microsoft.Azure.Documents.DataType dataType, short precision);
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.
Returns