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)
public override Nullable<int> GetElementCount(
DbGeography geographyValue
)
public:
virtual Nullable<int> GetElementCount(
DbGeography^ geographyValue
) override
abstract GetElementCount :
geographyValue:DbGeography -> Nullable<int>
override GetElementCount :
geographyValue:DbGeography -> Nullable<int>
public override function GetElementCount(
geographyValue : DbGeography
) : Nullable<int>
- geographyValue
类型:System.Data.Entity.Spatial.DbGeography
不需要表示地理集合的地理值。
类型:System.Nullable<Int32>
如果 geographyValue 表示其他地理值的集合,则为它当中的元素个数;否则为 null。