Partilhar via


Método SqlGeometry.ToString

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeometry instance augmented with any Z (elevation) and M (measure) values carried by the instance.

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

Sintaxe

'Declaração
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Overrides Function ToString As String
'Uso
Dim instance As SqlGeometry 
Dim returnValue As String 

returnValue = instance.ToString()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public override string ToString()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
virtual String^ ToString() override
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
abstract ToString : unit -> string 
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
override ToString : unit -> string
public override function ToString() : String

Valor de retorno

Tipo: System.String
A string value containing the WKT representation of the calling instance.

Comentários

This method will return the string "Null" when called on null instances.

Consulte também

Referência

SqlGeometry Classe

Namespace Microsoft.SqlServer.Types