共用方式為


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

應該針對此幾何值計算與這個值的距離。

傳回

雙精度浮點,指定這個幾何值與其他兩個最接近點之間的距離。

例外狀況

適用於