SpatialEdmFunctions.GeographyLineFromText(DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,能呼叫典型的「GeographyLineFromText」函式,並使用指定的參數。 lineWellKnownText 必須有字串結果型別,而 coordinateSystemId 必須有整數數值結果型別。 該表達式的結果類型為 Edm.地理。

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ GeographyLineFromText(System::Data::Common::CommandTrees::DbExpression ^ lineWellKnownText, System::Data::Common::CommandTrees::DbExpression ^ coordinateSystemId);
public static System.Data.Common.CommandTrees.DbFunctionExpression GeographyLineFromText(System.Data.Common.CommandTrees.DbExpression lineWellKnownText, System.Data.Common.CommandTrees.DbExpression coordinateSystemId);
static member GeographyLineFromText : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function GeographyLineFromText (lineWellKnownText As DbExpression, coordinateSystemId As DbExpression) As DbFunctionExpression

參數

lineWellKnownText
DbExpression

一個表達式,提供地理線值的眾所周知的文字表示。

coordinateSystemId
DbExpression

一個表示式,提供地理線值座標系的座標系 ID(SRID)。

傳回

一個新的 DbFunctionExpression,根據指定的值回傳新的地理線值。

例外狀況

lineWellKnownText coordinateSystemId

lineWellKnownText coordinateSystemId

適用於