Export (0) Print
Expand All
Expand Minimize

SqlGeometry.STAsText Method

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeometry instance. This text will not contain any Z (elevation) or M (measure) values carried by the instance.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STAsText As SqlChars
Dim instance As SqlGeometry 
Dim returnValue As SqlChars 

returnValue = instance.STAsText()

Return Value

Type: SqlChars
A SqlChars object containing the WKT representation of the SqlGeometry.

Community Additions

© 2015 Microsoft