次の方法で共有


SqlGeography.RingN メソッド

SqlGeography インスタンスの指定したリングを返します (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
    1 から polygon インスタンス内のリング数までの int 式です。

戻り値

型: Microsoft.SqlServer.Types.SqlGeography
n で指定されたリングを表す SqlGeography オブジェクトです。

説明

リング インデックス n の値が 1 未満の場合、このメソッドは、ArgumentOutOfRangeException をスローします。 リング インデックス値は、1 以上、かつ NumRings で返される数値以下である必要があります。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間