SqlGeography.STGeometryType Method ()

 

Applies To: SQL Server 2016 Preview

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

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

Syntax

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlString STGeometryType()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
SqlString STGeometryType()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STGeometryType : unit -> SqlString
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Function STGeometryType As SqlString

Return Value

Type: System.Data.SqlTypes.SqlString

A SqlString value containing the OGC type name.

Remarks

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

See Also

SqlGeography Class
Microsoft.SqlServer.Types Namespace

Return to top