DbGeography.Distance(DbGeography) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
计算此 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
与该值的距离应被计算出来的地理值。
返回
一个双精度值,指定此地理值和其他两个最靠近点之间的距离。