SpatialEdmFunctions.PointAt(DbExpression, DbExpression) 方法

定義

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

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

參數

spatialValue
DbExpression

一個指定空間線條字串值的表達式。

indexValue
DbExpression

一個表示式,指定要從線串中擷取點的位置。

傳回

一個新的 DbFunctionExpression,如果不是,則回傳 indexValuespatialValuenullspatialValue 位置點,若不是行字串。

例外狀況

spatialValue indexValue

適用於