SqlSpatialServices.ElementAt 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | 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
元素應從幾何值中取出的位置。
傳回
若該元素代表一組其他幾何值,則該元素位於位置索引;否則為零。