SqlGeometry.STNumGeometries 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回构成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。
- 属性