Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Index 类

定义

Azure Cosmos DB 服务中 IndexingPolicy Index 的基类,应使用哈希Index 或 RangeIndex 等具体索引。

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Documents.IndexJsonConverter))]
public abstract class Index : Microsoft.Azure.Documents.JsonSerializable
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Documents.IndexJsonConverter))>]
type Index = class
    inherit JsonSerializable
Public MustInherit Class Index
Inherits JsonSerializable
继承
派生
属性
Newtonsoft.Json.JsonConverterAttribute

构造函数

Index(IndexKind)

为 Azure Cosmos DB 服务初始化 类的新实例 Index

属性

Kind

获取或设置要应用于 Azure Cosmos DB 服务中的索引的类型。

方法

Hash(DataType)

返回具有 Azure Cosmos DB 服务的指定 DataType 的 类的实例 HashIndex

Hash(DataType, Int16)

返回具有 Azure Cosmos DB 服务的指定数据类型和精度的 类的实例 HashIndex

LoadFrom(JsonReader)

从 Azure Cosmos DB 服务中的指定 JSON 读取器加载对象。

(继承自 JsonSerializable)
LoadFrom(JsonReader, JsonSerializerSettings)

从 Azure Cosmos DB 服务中的指定 JSON 读取器加载对象。

(继承自 JsonSerializable)
Range(DataType)

返回具有 Azure Cosmos DB 服务的指定 DataType 的 类的实例 RangeIndex

Range(DataType, Int16)

返回具有 Azure Cosmos DB 服务的指定数据类型和精度的 类的实例 RangeIndex

SaveTo(Stream, SerializationFormattingPolicy)

将 对象保存到 Azure Cosmos DB 服务中的指定流。

(继承自 JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

将 对象保存到 Azure Cosmos DB 服务中的指定流。

(继承自 JsonSerializable)
Spatial(DataType)

返回具有 Azure Cosmos DB 服务的指定 DataType 的 类的实例 SpatialIndex

ToString()

返回 Azure Cosmos DB 服务中对象的字符串表示形式。

(继承自 JsonSerializable)

适用于