IResultSet.Relative(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves the cursor a relative number of rows, either positive or negative.
[Android.Runtime.Register("relative", "(I)Z", "GetRelative_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Relative (int rows);
[<Android.Runtime.Register("relative", "(I)Z", "GetRelative_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Relative : int -> bool
Parameters
- rows
- Int32
an int
specifying the number of rows to
move from the current row; a positive number moves the cursor
forward; a negative number moves the cursor backward
Returns
true
if the cursor is on a row;
false
otherwise
- Attributes
Exceptions
if a database error happens.
Remarks
Moves the cursor a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row. Calling relative(0)
is valid, but does not change the cursor position.
Note: Calling the method relative(1)
is identical to calling the method next()
and calling the method relative(-1)
is identical to calling the method previous()
.
Added in 1.2.
Java documentation for java.sql.ResultSet.relative(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.