MarkLogic XCC/.Net Library |

# ResultSequence.HasNext Method

Returns true if this sequence contains another item beyond the currently active one. Initially, the result sequence is positioned before the first item, if any, and this method will return false if the sequence is empty. Note that if the current item is large (node, binary, text) and has not yet been fully consumed by the client, it's value may be flushed and lost as the result stream is positioned to the next item.

[Visual Basic]
Function HasNext() As Boolean
[C#]
bool HasNext();

#### Return Value

True if at least one more item exists in this ResultSequence. If closed, this method always returns false.

#### See Also

ResultSequence Interface | Marklogic.Xcc Namespace