SqlSpatialServices.ElementAt 方法

定义

重载

ElementAt(DbGeography, Int32)

如果其表示地理集合,则返回给定 DbGeography 值的元素。

ElementAt(DbGeometry, Int32)

如果其表示几何图形集合,则返回给定 DbGeometry 值的元素。

ElementAt(DbGeography, Int32)

如果其表示地理集合,则返回给定 DbGeography 值的元素。

public override System.Data.Entity.Spatial.DbGeography ElementAt(System.Data.Entity.Spatial.DbGeography geographyValue, int index);
override this.ElementAt : System.Data.Entity.Spatial.DbGeography * int -> System.Data.Entity.Spatial.DbGeography
Public Overrides Function ElementAt (geographyValue As DbGeography, index As Integer) As DbGeography

参数

geographyValue
DbGeography

不需要表示地理集合的地理值。

index
Int32

在地理值中元素应被采用的的位置。

返回

如果 geographyValue 表示其他地理值的集合,则为位置索引处的 geographyValue 中的元素;否则为 null。

适用于

ElementAt(DbGeometry, Int32)

如果其表示几何图形集合,则返回给定 DbGeometry 值的元素。

public override System.Data.Entity.Spatial.DbGeometry ElementAt(System.Data.Entity.Spatial.DbGeometry geometryValue, int index);
override this.ElementAt : System.Data.Entity.Spatial.DbGeometry * int -> System.Data.Entity.Spatial.DbGeometry
Public Overrides Function ElementAt (geometryValue As DbGeometry, index As Integer) As DbGeometry

参数

geometryValue
DbGeometry

不需要表示几何图形集合的几何图形值。

index
Int32

在几何值中元素应被采用的位置。

返回

如果 geometryValue 中的元素表示其他几何图形值的集合,则为位置索引处的元素;否则为 null。

适用于