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 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) instances.