语言

DbGeography.Distance(DbGeography) 方法

定义

计算此 DbGeography 值中最近点与另一个 DbGeography 值之间的距离。

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

参数

other
DbGeography

应计算与此值之间的距离的地理值。

返回

一个双精度值,该值指定此地理值和其他两个最接近点之间的距离。

适用于