SqlGeography.NumRings 方法 ()

 

返回 Polygon 实例中的总环数。

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

语法

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

返回值

Type: System.Data.SqlTypes.SqlInt32

一个指定总环数的 SqlInt32 值。

如果该实例不是 Polygon 实例,则此方法返回 Null;如果该实例为空,则将返回 0。

备注

在 SQL Server 中 geography 类型,外部和内部环进行区分,因为外部环时可以执行任何环。

此方法是精确方法。

另请参阅

SqlGeography 类
Microsoft.SqlServer.Types 命名空间

返回页首