使用英语阅读

通过


SqlSpatialServices.GetElementCount 方法 (DbGeography)

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

如果表示地理集合,则返回给定 DbGeography 值的元素数目。

命名空间:  System.Data.Entity.SqlServer
程序集:  EntityFramework.SqlServer(在 EntityFramework.SqlServer.dll 中)

语法

声明
Public Overrides Function GetElementCount ( _
    geographyValue As DbGeography _
) As Nullable(Of Integer)
用法
Dim instance As SqlSpatialServices 
Dim geographyValue As DbGeography 
Dim returnValue As Nullable(Of Integer)

returnValue = instance.GetElementCount(geographyValue)

参数

返回值

类型:System.Nullable<Int32>
如果 geographyValue 表示其他地理值的集合,则为它当中的元素个数;否则为 null。

请参阅

参考

SqlSpatialServices 类

GetElementCount 重载

System.Data.Entity.SqlServer 命名空间