Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlGeometry.STGeometryType Method ()


Applies To: SQL Server 2016 Preview

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)]
public SqlString STGeometryType()

Return Value

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

Return to top
© 2015 Microsoft