SqlCeResultSet.ReadRelative Method

Moves the reader the specified amount from the current position.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public function ReadRelative(
	position : int
) : boolean


Type: System.Int32
The number of positions to move the reader.

Return Value

Type: System.Boolean
True if the operation succeeded; otherwise, false.

If you pass a positive integer for the position, this function moves the reader forward in the result set. A negative integer moves the reader backward through the result set.

The following example creates a ResultSet object and then calls several methods, including ReadRelative.

No code example is currently available or this language may not be supported.