SqlGeometry.STNumGeometries Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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