語言

DbGeography.FromText 方法

定義

多載

名稱 Description
FromText(String)

根據指定的已知文字值建立新 DbGeography 值。

FromText(String, Int32)

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

FromText(String)

根據指定的已知文字值建立新 DbGeography 值。

public static System.Data.Entity.Spatial.DbGeography FromText(string wellKnownText);
static member FromText : string -> System.Data.Entity.Spatial.DbGeography
Public Shared Function FromText (wellKnownText As String) As DbGeography

參數

wellKnownText
String

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

傳回

一個新的資料庫地理值,由已知的文字值定義,預設地理座標系統識別碼(SRID)( DefaultCoordinateSystemId )。

適用於

FromText(String, Int32)

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

public static System.Data.Entity.Spatial.DbGeography FromText(string wellKnownText, int coordinateSystemId);
static member FromText : string * int -> System.Data.Entity.Spatial.DbGeography
Public Shared Function FromText (wellKnownText As String, coordinateSystemId As Integer) As DbGeography

參數

wellKnownText
String

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

coordinateSystemId
Int32

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

傳回

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

適用於