SqlGeography.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.

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

구문

‘선언
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Overrides Function ToString As String
‘사용 방법
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

반환 값

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

주의

This method returns the string "Null" when called on nullnull 참조(Visual Basic에서는 Nothing) instances.

참고 항목

참조

SqlGeography 클래스

Microsoft.SqlServer.Types 네임스페이스