共用方式為


SqlGeography.STAsText 方法

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeography instance.

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STAsText As SqlChars
'用途
Dim instance As SqlGeography 
Dim returnValue As SqlChars 

returnValue = instance.STAsText()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlChars STAsText()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlChars^ STAsText()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STAsText : unit -> SqlChars
public function STAsText() : SqlChars

傳回值

型別:System.Data.SqlTypes.SqlChars
A SqlChars value that contains the WKT representation of the SqlGeography instance.

備註

This text will not contain any Z (elevation) or M (measure) values carried by the instance.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間