SpatialEdmFunctions.Distance(DbExpression, DbExpression) メソッド

定義

指定した引数を使用して正規の 'Distance' 関数を呼び出す DbFunctionExpression を作成します。この関数には、それぞれ Edm.Geography または Edm.Geometry の結果型が必要です。 spatialValue1の結果の型は、spatialValue2の結果の型と一致する必要があります。 式の結果の型は Edm.Double です。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Distance(System::Data::Common::CommandTrees::DbExpression ^ spatialValue1, System::Data::Common::CommandTrees::DbExpression ^ spatialValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression Distance(this System.Data.Common.CommandTrees.DbExpression spatialValue1, System.Data.Common.CommandTrees.DbExpression spatialValue2);
static member Distance : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Distance (spatialValue1 As DbExpression, spatialValue2 As DbExpression) As DbFunctionExpression

パラメーター

spatialValue1
DbExpression

最初の空間値を指定する式。

spatialValue2
DbExpression

spatialValue1からの距離を測定する空間値を指定する式。

返品

spatialValue1spatialValue1の最も近いポイント間の距離を返す新しい DbFunctionExpression。

例外

spatialValue1 spatialValue2

spatialValue1 spatialValue2

適用対象