SqlGeography.ToString Method ()

 

Applies To: SQL Server 2016 Preview

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.

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

Syntax

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public override string ToString()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
virtual String^ ToString() override
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
override ToString : unit -> string
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Overrides Function ToString As String

Return Value

Type: System.String

A string containing the WKT representation of the calling SqlGeography instance.

Remarks

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

See Also

SqlGeography Class
Microsoft.SqlServer.Types Namespace

Return to top