语言

DbSpatialServices.GetPointCount 方法

定义

重载

名称 说明
GetPointCount(DbGeography)

如果给定值表示线字符串或线性环,则返回给定 DbGeography 值中的点数。

GetPointCount(DbGeometry)

如果给定值表示线字符串或线性环,则返回给定 DbGeometry 值中的点数。

GetPointCount(DbGeography)

如果给定值表示线字符串或线性环,则返回给定 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

地理值,它不需要表示线字符串或线性环。

返回

给定 DbGeography 值中的点数。

例外

geographyValue 为 null。

geographyValue 与此空间服务实现不兼容。

适用于

GetPointCount(DbGeometry)

如果给定值表示线字符串或线性环,则返回给定 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

几何图形值,它不需要表示线字符串或线性环。

返回

给定 DbGeometry 值中的点数。

例外

geometryValue 为 null。

geometryValue 与此空间服务实现不兼容。

适用于