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


Метод SqlGeography.STGeometryType

Returns the Open Geospatial Consortium (OGC) type name represented by a geography instance.

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

Синтаксис

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

returnValue = instance.STGeometryType()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlString STGeometryType()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
SqlString STGeometryType()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STGeometryType : unit -> SqlString
public function STGeometryType() : SqlString

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

Тип: System.Data.SqlTypes.SqlString
A SqlString value containing the OGC type name.

Замечания

The OGC type names that can be returned by the STGeometryType method are Point, LineString, Polygon, GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon.

См. также

Справочник

SqlGeography Класс

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