语言

SqlSpatialServices.GetLength 方法

定义

重载

名称 说明
GetLength(DbGeometry)

返回一个可以为 null 的双精度值,该值指示给定 DbGeometry 值的长度,如果该值不表示曲线,该值可能为 null。

GetLength(DbGeography)

返回一个可以为 null 的双精度值,该值指示给定 DbGeography 值的长度,如果该值不表示曲线,该值可能为 null。

GetLength(DbGeometry)

返回一个可以为 null 的双精度值,该值指示给定 DbGeometry 值的长度,如果该值不表示曲线,该值可能为 null。

public override Nullable<double> GetLength(System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.GetLength : System.Data.Entity.Spatial.DbGeometry -> Nullable<double>
Public Overrides Function GetLength (geometryValue As DbGeometry) As Nullable(Of Double)

参数

geometryValue
DbGeometry

不需要表示曲线的几何图形值。

返回

给定 DbGeometry 值的长度。

适用于

GetLength(DbGeography)

返回一个可以为 null 的双精度值,该值指示给定 DbGeography 值的长度,如果该值不表示曲线,该值可能为 null。

public override Nullable<double> GetLength(System.Data.Entity.Spatial.DbGeography geographyValue);
override this.GetLength : System.Data.Entity.Spatial.DbGeography -> Nullable<double>
Public Overrides Function GetLength (geographyValue As DbGeography) As Nullable(Of Double)

参数

geographyValue
DbGeography

不需要表示曲线的地理值。

返回

给定 DbGeography 值的长度。

适用于