SqlSpatialServices.GeographyFromText 方法 (String)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
根據指定的已知文字值,建立新的 DbGeography 值。
命名空間: System.Data.Entity.SqlServer
組件: EntityFramework.SqlServer (在 EntityFramework.SqlServer.dll 中)
語法
'宣告
Public Overrides Function GeographyFromText ( _
wellKnownText As String _
) As DbGeography
'用途
Dim instance As SqlSpatialServices
Dim wellKnownText As String
Dim returnValue As DbGeography
returnValue = instance.GeographyFromText(wellKnownText)
public override DbGeography GeographyFromText(
string wellKnownText
)
public:
virtual DbGeography^ GeographyFromText(
String^ wellKnownText
) override
abstract GeographyFromText :
wellKnownText:string -> DbGeography
override GeographyFromText :
wellKnownText:string -> DbGeography
public override function GeographyFromText(
wellKnownText : String
) : DbGeography
參數
- wellKnownText
類型:System.String
包含地理位置值之已知文字表示法的字串。
傳回值
類型:System.Data.Entity.Spatial.DbGeography
新的 DbGeography 值,由具有預設 DbGeography 座標系統識別項 (SRID) (DefaultCoordinateSystemId) 的已知文字值所定義。