DbSpatialServices.GetElementCount 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetElementCount(DbGeometry) |
如果該值代表幾何集合,則回傳該值中的 DbGeometry 元素數量。 |
| GetElementCount(DbGeography) |
若該值代表地理集合,則回傳該值中的 DbGeography 元素數。 |
GetElementCount(DbGeometry)
如果該值代表幾何集合,則回傳該值中的 DbGeometry 元素數量。
public abstract Nullable<int> GetElementCount(System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetElementCount : System.Data.Entity.Spatial.DbGeometry -> Nullable<int>
Public MustOverride Function GetElementCount (geometryValue As DbGeometry) As Nullable(Of Integer)
參數
- geometryValue
- DbGeometry
幾何值,不必代表幾何集合。
傳回
geometryValue 中元素的數量,若代表其他幾何值的集合;否則為零。
例外狀況
geometryValue 為零。
geometryValue 與此空間服務實作不相容。
適用於
GetElementCount(DbGeography)
若該值代表地理集合,則回傳該值中的 DbGeography 元素數。
public abstract Nullable<int> GetElementCount(System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member GetElementCount : System.Data.Entity.Spatial.DbGeography -> Nullable<int>
Public MustOverride Function GetElementCount (geographyValue As DbGeography) As Nullable(Of Integer)
參數
- geographyValue
- DbGeography
地理價值,不必代表地理收藏。
傳回
geographyValue 中的元素數,若代表其他地理值的集合;否則為零。
例外狀況
geographyValue 為零。
geographyValue 與此空間服務實作不相容。