共用方式為


SqlGeography.RingN 方法

Returns the specified ring of the SqlGeography instance: 1 ≤ n ≤ NumRings().

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function RingN ( _
    n As Integer _
) As SqlGeography
'用途
Dim instance As SqlGeography 
Dim n As Integer 
Dim returnValue As SqlGeography 

returnValue = instance.RingN(n)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlGeography RingN(
    int n
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
SqlGeography^ RingN(
    int n
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member RingN : 
        n:int -> SqlGeography
public function RingN(
    n : int
) : SqlGeography

參數

  • n
    型別:System.Int32
    An int expression between 1 and the number of rings in a polygon instance.

傳回值

型別:Microsoft.SqlServer.Types.SqlGeography
A SqlGeography object that represents the ring specified by n.

備註

If the value of the ring index n is less than 1, this method throws an ArgumentOutOfRangeException. The ring index value must be greater than or equal to 1 and should be less than or equal to the number returned by NumRings.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間