Export (0) Print
Expand All

SqlGeography.STNumGeometries Method

Returns the number of geometries that make up a SqlGeography instance.

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

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlInt32 STNumGeometries()

Return Value

Type: SqlInt32
A SqlInt32 value that specifies the number of geometries that make up the SqlGeography instance.

This method returns 1 if the geography instance is not a MultiPoint, MultiLineString, MultiPolygon, or GeometryCollection instance, or 0 if the SqlGeography instance is empty.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft