SqlGeometry.STAsText 方法 ()
返回 SqlGeometry 实例的开放地理空间信息联盟 (OGC) 熟知文本 (WKT) 表示形式。 此文本将不包含该实例传递的任何 Z(标高)或 M(度量)值。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlChars STAsText()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlChars^ STAsText()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STAsText : unit -> SqlChars
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STAsText As SqlChars
返回值
Type: System.Data.SqlTypes.SqlChars
一个 SqlChars 对象,该对象包含 SqlGeometry 的 WKT 表示形式。
另请参阅
SqlGeometry 类
Microsoft.SqlServer.Types 命名空间
返回页首