次の方法で共有


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

この値からの距離を計算する必要がある geometry 値。

戻り値

このジオメトリ値内の 2 つの最も近いポイントと他のポイント間の距離を指定する double 値。

例外

適用対象