共用方式為


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 中位置索引的專案,如果它代表其他地理值的集合,則為 ;否則為 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。

適用於