다음을 통해 공유


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.