Export (0) Print
Expand All
Expand Minimize

SqlGeometry.STGeometryType Method

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

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STGeometryType : unit -> SqlString

Return Value

Type: 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.

Community Additions

© 2014 Microsoft