DbGeometry.Distance(DbGeometry) 方法

定义

计算此 DbGeometry 值和其他 DbGeometry 值中两个最接近的点之间的距离。

public Nullable<double> Distance (System.Data.Entity.Spatial.DbGeometry other);
member this.Distance : System.Data.Entity.Spatial.DbGeometry -> Nullable<double>
Public Function Distance (other As DbGeometry) As Nullable(Of Double)

参数

other
DbGeometry

与该值的距离应被计算出来的几何图形值。

返回

一个双精度值,指定此几何图形值中两个最靠近的点之间的距离。

例外

适用于