MarkLogic XCC/.Net Library |

# ResultSequence.Size Method

Returns the number of ResultItems, if known, in this ResultSequence. For streaming (non-cached) ResultSequences, ResultItems are processed sequentially from the communication channel and so the size of the full sequence is not known during iteration.

[Visual Basic]
Function Size() As Integer
[C#]
int Size();

#### Return Value

The size, if this ResultSequence is cached, otherwise -1.

#### See Also

ResultSequence Interface | Marklogic.Xcc Namespace