Compartir a través de


SqlGeography.STAsText Método

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

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<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 devuelto

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

Comentarios

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

Vea también

Referencia

SqlGeography Clase

Espacio de nombres Microsoft.SqlServer.Types