共用方式為


SpatialEdmFunctions.GeographyLineFromText(DbExpression, DbExpression) 方法

定義

建立一個使用指定引數叫用標準 'GeographyLineFromText' 函式的 DbFunctionExpressionlineWellKnownText 必須具有字串結果型別,而 coordinateSystemId 必須具有整數數值結果型別。 運算式的結果型別為 Edm.Geography。

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

適用於