你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
GeoCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示由多个几何图形组成的几何图形。
[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))]
public sealed class GeoCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable<Azure.Core.GeoJson.GeoObject>, System.Collections.Generic.IReadOnlyCollection<Azure.Core.GeoJson.GeoObject>, System.Collections.Generic.IReadOnlyList<Azure.Core.GeoJson.GeoObject>
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))>]
type GeoCollection = class
inherit GeoObject
interface IReadOnlyList<GeoObject>
interface seq<GeoObject>
interface IEnumerable
interface IReadOnlyCollection<GeoObject>
Public NotInheritable Class GeoCollection
Inherits GeoObject
Implements IEnumerable(Of GeoObject), IReadOnlyCollection(Of GeoObject), IReadOnlyList(Of GeoObject)
- 继承
- 属性
- 实现
构造函数
GeoCollection(IEnumerable<GeoObject>, GeoBoundingBox, IReadOnlyDictionary<String,Object>) |
初始化 的新实例 GeoCollection。 |
GeoCollection(IEnumerable<GeoObject>) |
初始化 的新实例 GeoCollection。 |
属性
BoundingBox |
表示有关 的 GeoObject坐标范围的信息。 (继承自 GeoObject) |
Count |
获取集合中的元素数。 |
Item[Int32] |
获取位于只读列表中指定索引处的元素。 |
Type |
获取此 对象的 GeoJSON 类型。 |
方法
GetEnumerator() |
返回一个循环访问集合的枚举器。 |
ToString() |
将 的 GeoObject 实例转换为 GeoJSON 表示形式。 (继承自 GeoObject) |
TryGetCustomProperty(String, Object) |
尝试获取与 关联的 GeoObject自定义属性的值。 (继承自 GeoObject) |
显式接口实现
IEnumerable.GetEnumerator() |
返回循环访问集合的枚举数。 |