DbGeometry.PointFromText(String, Int32) 方法

定義

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

public:
 static System::Data::Spatial::DbGeometry ^ PointFromText(System::String ^ pointWellKnownText, int coordinateSystemId);
public static System.Data.Spatial.DbGeometry PointFromText(string pointWellKnownText, int coordinateSystemId);
static member PointFromText : string * int -> System.Data.Spatial.DbGeometry
Public Shared Function PointFromText (pointWellKnownText As String, coordinateSystemId As Integer) As DbGeometry

參數

pointWellKnownText
String

一個包含幾何值已知文字表示的字串。

coordinateSystemId
Int32

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

傳回

一個新的 DbGeometry 值,由已知的文字值定義,並附上指定的座標系統識別碼。

例外狀況

pointWellKnownText

coordinateSystemId

適用於