语言

SqlGeometry.STNumGeometries 方法

定义

返回构成SqlGeometry实例的SqlGeometry编号。

[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

返回

如果 SqlGeometry 实例不是 MultiPoint、MultiLineString、MultiPolygon 或 GeometryCollection 实例,则返回 1;如果实例为空,则 SqlGeometry 返回 0。

属性

适用于