Condividi tramite


Metodo ToString

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

Spazio dei nomi  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Sintassi

'Dichiarazione
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Overrides Function ToString As String
'Utilizzo
Dim instance As SqlGeography
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

Valore restituito

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

Osservazioni

This method returns the string "Null" when called on null Nothing nullptr unit riferimento Null (Nothing in Visual Basic). instances.