語言

SqlSpatialServices.ElementAt 方法

定義

多載

名稱 Description
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

該元素應從地理值中取出的位置。

傳回

地理指標中的元素,若代表其他地理值的集合;否則為零。

適用於

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

元素應從幾何值中取出的位置。

傳回

若該元素代表一組其他幾何值,則該元素位於位置索引;否則為零。

適用於