Metoda SqlGeography.RingN
Zwraca określony pierścień SqlGeography wystąpienie: 1 ≤ n ≤ NumRings().
Przestrzeń nazw: Microsoft.SqlServer.Types
Zestaw: Microsoft.SqlServer.Types (w Microsoft.SqlServer.Types.dll)
Składnia
'Deklaracja
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function RingN ( _
n As Integer _
) As SqlGeography
'Użycie
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
Parametry
- n
Typ: System.Int32
Int wyrażenie między 1 i liczbę sygnałów wielokąta wystąpienie.
Wartość zwracana
Typ: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography obiekt, który reprezentuje pierścienia określonej przez n.
Uwagi
Jeśli wartość n indeksu pierścień jest mniejsza niż 1, ta metoda wygeneruje ArgumentOutOfRangeException.Wartość indeksu pierścienia musi być większa lub równa 1 i powinna być mniejsza niż liczba zwracana przez NumRings.