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


Метод SqlGeometry.STGeometryType

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

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

Синтаксис

'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STGeometryType As SqlString
'Применение
Dim instance As SqlGeometry 
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.

Замечания

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

См. также

Справочник

SqlGeometry Класс

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