SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) 方法

定义

创建一个 DbFunctionExpression ,该函数使用指定的参数调用规范“SpatialElementAt”函数。 第一个参数必须具有 Edm.Geography 或 Edm.Geometry 结果类型。 第二个参数必须具有整数数值结果类型。 表达式的结果类型与该 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

一个指定地理或几何图形集合值的表达式。

indexValue
DbExpression

一个表达式,指定要从几何图形或地理集合中检索的元素的位置。

返回

一个新的 DbFunctionExpression,它返回位于某个位置indexValuespatialValue的集合元素,或者null不是spatialValue集合。

例外

spatialValue indexValue

适用于