語言

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

應計算該值距離的地理值。

傳回

一個雙重值,指定該地理值中兩個最近點之間的距離,其他。

適用於