語言

SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,呼叫典型的「SpatialElementAt」函式,並指定參數。 第一個自變數必須具有Edm.Geography或Edm.Geometry結果類型。 第二個自變數必須有整數數值結果類型。 該表達式的結果類型與 spatialValue 相同。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression SpatialElementAt(this System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression indexValue);
static member SpatialElementAt : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialElementAt (spatialValue As DbExpression, indexValue As DbExpression) As DbFunctionExpression

參數

spatialValue
DbExpression

一個表示式,用來指定地理或幾何集合值。

indexValue
DbExpression

一個表示式,用來指定要從幾何或地理集合中擷取元素的位置。

傳回

一個新的 DbFunctionExpression,會回傳 spatialValue 中位置 indexValue 的集合元素,若 spatialValue 不是集合則回傳 null。

適用於