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
應計算該值距離的地理值。
傳回
一個雙重值,指定該地理值中兩個最近點之間的距離,其他。