Share via


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

BoundingBoxSpec 类

定义

表示 Azure Cosmos DB 服务中几何空间路径的边界框

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

示例

{ “id”: “DocumentCollection Id”, “indexingPolicy”:{ “spatialIndexes”: [{
“path”:“/'region'/?”, “types”:[“Polygon”], “boundingBox”: { “xmin”:0, “ymin”:0, “xmax”:10, “ymax”:10 } }] }, “geospatialConfig”: { “type”: “Geometry” } }

构造函数

BoundingBoxSpec()

表示 Azure Cosmos DB 服务中几何空间路径的边界框

属性

Xmax

获取边界框右上角的 x 坐标。

Xmin

获取边界框左下角的 x 坐标。

Ymax

获取边界框右上角的 y 坐标。

Ymin

获取边界框左下角的 y 坐标。

方法

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)

适用于