語言

SqlSpatialServices.GetElementCount 方法

定義

多載

名稱 Description
GetElementCount(DbGeography)

若該值代表地理集合,則回傳該值中的 DbGeography 元素數。

GetElementCount(DbGeometry)

如果該值代表幾何集合,則回傳該值中的 DbGeometry 元素數量。

GetElementCount(DbGeography)

若該值代表地理集合,則回傳該值中的 DbGeography 元素數。

public override Nullable<int> GetElementCount(System.Data.Entity.Spatial.DbGeography geographyValue);
override this.GetElementCount : System.Data.Entity.Spatial.DbGeography -> Nullable<int>
Public Overrides Function GetElementCount (geographyValue As DbGeography) As Nullable(Of Integer)

參數

geographyValue
DbGeography

地理價值,不必代表地理收藏。

傳回

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

適用於

GetElementCount(DbGeometry)

如果該值代表幾何集合,則回傳該值中的 DbGeometry 元素數量。

public override Nullable<int> GetElementCount(System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.GetElementCount : System.Data.Entity.Spatial.DbGeometry -> Nullable<int>
Public Overrides Function GetElementCount (geometryValue As DbGeometry) As Nullable(Of Integer)

參數

geometryValue
DbGeometry

幾何值,不必代表幾何集合。

傳回

geometryValue 中元素的數量,若代表其他幾何值的集合;否則為零。

適用於