MarkLogic XCC/.Net Library |

# ResultSequence.Next Method

Advance the logical cursor to the next ResultItem in this ResultSequence and return that item. The logical cursor is initially positioned before the first item in the sequence.

Unlike Iterator.next(), this method returns null when there is no next item.

[Visual Basic]
Function Next() As ResultItem
[C#]
ResultItem Next();

#### Return Value

The next ResultItem in this sequence, or null if the end of the sequence has been reached. Note that the sequence may be empty and this method may return null on the first call.

#### See Also

ResultSequence Interface | Marklogic.Xcc Namespace