SqlGeometry.STNumGeometries Method

Definition

Returns the number of SqlGeometry that comprise a SqlGeometry instance.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)]
public System.Data.SqlTypes.SqlInt32 STNumGeometries ();
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)>]
member this.STNumGeometries : unit -> System.Data.SqlTypes.SqlInt32
Public Function STNumGeometries () As SqlInt32

Returns

Returns 1 if the SqlGeometry instance is not a MultiPoint, MultiLineString, MultiPolygon, or GeometryCollection instance, and 0 if the SqlGeometry instance is empty.

Attributes

Applies to