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

定義

指定した引数を使用して正規の 'SpatialElementAt' 関数を呼び出す DbFunctionExpression を作成します。 最初の引数には、Edm.Geography または Edm.Geometry の結果型が必要です。 2 番目の引数には、整数の数値結果型が必要です。 式の結果の型は、 spatialValueと同じです。

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

パラメーター

spatialValue
DbExpression

geography または geometry コレクション値を指定する式。

indexValue
DbExpression

geometry または geography コレクション内から取得する要素の位置を指定する式。

返品

spatialValue内のindexValue位置にあるコレクション要素を返す新しい DbFunctionExpression、またはspatialValueがコレクションでない場合はnull

例外

spatialValue indexValue

適用対象