SqlSpatialServices.AsText 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 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 的已知文字表示。