語言

DbSpatialServices.GeographyPointFromText(String, Int32) 方法

定義

根據指定的已知文字值與座標系統識別碼(SRID)建立新的 DbGeography 點值。

public:
 abstract System::Data::Spatial::DbGeography ^ GeographyPointFromText(System::String ^ pointWellKnownText, int coordinateSystemId);
public abstract System.Data.Spatial.DbGeography GeographyPointFromText(string pointWellKnownText, int coordinateSystemId);
abstract member GeographyPointFromText : string * int -> System.Data.Spatial.DbGeography
Public MustOverride Function GeographyPointFromText (pointWellKnownText As String, coordinateSystemId As Integer) As DbGeography

參數

pointWellKnownText
String

一個包含地理值已知文字表示的字串。

coordinateSystemId
Int32

新值應使用的座標系統 DbGeography 識別碼。

傳回

DbGeography由已知文字值定義的新值,並附上指定的座標系統識別碼(SRID)(DefaultCoordinateSystemId)。

例外狀況

pointWellKnownText

coordinateSystemId

適用於