共用方式為


SqlSpatialServices.AsText 方法

定義

多載

AsText(DbGeography)

取得所指 DbGeography 值的已知文字表示。 這個值應該只包含點的經度和緯度。

AsText(DbGeometry)

取得所指 DbGeometry 值的已知文字表示,僅包括點的 X 和 Y 座標。

AsText(DbGeography)

取得所指 DbGeography 值的已知文字表示。 這個值應該只包含點的經度和緯度。

public override string AsText(System.Data.Entity.Spatial.DbGeography geographyValue);
override this.AsText : System.Data.Entity.Spatial.DbGeography -> string
Public Overrides Function AsText (geographyValue As DbGeography) As String

參數

geographyValue
DbGeography

應該針對此地理位置值產生熟知的文字。

傳回

字串,包含 geographyValue 的已知文字表示。

適用於

AsText(DbGeometry)

取得所指 DbGeometry 值的已知文字表示,僅包括點的 X 和 Y 座標。

public override string AsText(System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.AsText : System.Data.Entity.Spatial.DbGeometry -> string
Public Overrides Function AsText (geometryValue As DbGeometry) As String

參數

geometryValue
DbGeometry

應該針對此幾何值產生熟知的文字。

傳回

字串,包含 geometryValue 的已知文字表示。

適用於