SqlGeography.STNumGeometries 方法 ()

 

返回构成 SqlGeography 实例的几何图形的数目。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlInt32 STNumGeometries()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
SqlInt32 STNumGeometries()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STNumGeometries : unit -> SqlInt32
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Function STNumGeometries As SqlInt32

返回值

Type: System.Data.SqlTypes.SqlInt32

一个 SqlInt32 值,该值指定构成 SqlGeography 实例的几何图形数目。

备注

如果 geography 实例不是 MultiPointMultiLineStringMultiPolygonGeometryCollection 实例,则此方法返回 1;如果 SqlGeography 实例为空则返回 0。

另请参阅

SqlGeography 类
Microsoft.SqlServer.Types 命名空间

返回页首