共用方式為


DbSpatialServices.GetPointCount 方法

定義

多載

GetPointCount(DbGeography)

如果它代表 linestring 或線性環,則以指定的 DbGeography 值傳回資料點數目。

GetPointCount(DbGeometry)

如果它代表 linestring 或線性環,則以指定的 DbGeometry 值傳回資料點數目。

GetPointCount(DbGeography)

如果它代表 linestring 或線性環,則以指定的 DbGeography 值傳回資料點數目。

public abstract Nullable<int> GetPointCount(System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member GetPointCount : System.Data.Entity.Spatial.DbGeography -> Nullable<int>
Public MustOverride Function GetPointCount (geographyValue As DbGeography) As Nullable(Of Integer)

參數

geographyValue
DbGeography

地理位置值,不需要代表 linestring 或線型圓圈。

傳回

指定的 DbGeography 值中的點數。

例外狀況

geographyValue 為 null。

geographyValue 與這個空間服務實作不相容。

適用於

GetPointCount(DbGeometry)

如果它代表 linestring 或線性環,則以指定的 DbGeometry 值傳回資料點數目。

public abstract Nullable<int> GetPointCount(System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetPointCount : System.Data.Entity.Spatial.DbGeometry -> Nullable<int>
Public MustOverride Function GetPointCount (geometryValue As DbGeometry) As Nullable(Of Integer)

參數

geometryValue
DbGeometry

不需要代表 linestring 或線性環的幾何值。

傳回

指定的 DbGeometry 值中的點數。

例外狀況

geometryValue 為 null。

geometryValue 與這個空間服務實作不相容。

適用於