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 如果不是集合,則會回傳集合 indexValuespatialValuenullspatialValue 元素。

例外狀況

spatialValue indexValue

適用於