SqlGeography.RingN 方法 (Int32)

 

返回 SqlGeography 实例的指定环:1 ≤ n ≤ NumRings()。

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

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlGeography RingN(
    int n
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
SqlGeography^ RingN(
    int n
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member RingN : 
        n:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Function RingN (
    n As Integer
) As SqlGeography

参数

  • n
    Type: System.Int32

    一个 int 表达式,其值介于 1 与多边形实例中的环数之间。

返回值

Type: Microsoft.SqlServer.Types.SqlGeography

一个 SqlGeography 对象,该对象表示由 n 指定的环。

备注

如果环索引 n 的值等于或大于 1,此方法将引发 ArgumentOutOfRangeException。 环索引的值必须大于或等于 1 且应小于或等于返回的数字 NumRings

另请参阅

SqlGeography 类
Microsoft.SqlServer.Types 命名空间

返回页首