共用方式為


SqlSpatialServices.GetElementCount 方法

定義

多載

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 中的專案數代表其他地理值的集合,則為 ;否則為 null。

適用於

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 中的專案數,如果它代表其他幾何值的集合,則為 ;否則為 null。

適用於