SpatialEdmFunctions.GeographyCollectionFromText 方法

定義

建立 DbFunctionExpression 一個,能喚起典型的「GeographyCollectionFromText」函式,並附上指定的參數。 geographyCollectionWellKnownText 必須有字串結果型別,而 coordinateSystemId 必須有整數數值結果型別。 該表達式的結果類型為 Edm.地理。

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

參數

geographyCollectionWellKnownText
DbExpression

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

coordinateSystemId
DbExpression

一個表達式,提供地理收集值座標系的座標系 id(SRID)。

傳回

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

例外狀況

geographyCollectionWellKnownText coordinateSystemId

geographyCollectionWellKnownText coordinateSystemId

適用於