Share via


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

SpatialIndex 类

定义

在 Azure Cosmos DB 服务中指定 类的实例 SpatialIndex

public sealed class SpatialIndex : Microsoft.Azure.Documents.Index
type SpatialIndex = class
    inherit Index
Public NotInheritable Class SpatialIndex
Inherits Index
继承
实现

注解

可用于提供空间查询。

构造函数

SpatialIndex(DataType)

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

属性

DataType

获取或设置应在 Azure Cosmos DB 服务中应用此索引的数据类型。

Kind

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

(继承自 Index)

方法

Clone()

为 Azure Cosmos DB 服务创建空间索引的副本。

LoadFrom(JsonReader)

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

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

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

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

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

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

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

(继承自 JsonSerializable)
ToString()

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

(继承自 JsonSerializable)

适用于