DbGeometry.Distance(DbGeometry) 方法

定義

計算此 DbGeometry 值中最近點與另一個 DbGeometry 值之間的距離。

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

參數

other
DbGeometry

應計算與此值距離的幾何值。

傳回

一個雙重值,指定此幾何中兩個最近點之間的距離,值與 other

例外狀況

適用於