Поделиться через


Метод SqlGeometry.STAsText

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeometry instance. This text will not contain any Z (elevation) or M (measure) values carried by the instance.

Пространство имен:  Microsoft.SqlServer.Types
Сборка:  Microsoft.SqlServer.Types (в Microsoft.SqlServer.Types.dll)

Синтаксис

'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STAsText As SqlChars
'Применение
Dim instance As SqlGeometry 
Dim returnValue As SqlChars 

returnValue = instance.STAsText()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlChars STAsText()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlChars^ STAsText()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STAsText : unit -> SqlChars
public function STAsText() : SqlChars

Возвращаемое значение

Тип: System.Data.SqlTypes.SqlChars
A SqlChars object containing the WKT representation of the SqlGeometry.

См. также

Справочник

SqlGeometry Класс

Пространство имен Microsoft.SqlServer.Types