Partilhar via


Método STAsText

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

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

Sintaxe

'Declaração
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STAsText As SqlChars
'Uso
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

Valor de retorno

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

Comentários

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