MarkLogic XCC/.Net Library

ResultSequence.ToCached Method 

Produce a cached version of this ResultSequence. If the provided ResultSequence is already cached (Cached is true), then nothing is done and this instance returns itself. Otherwise, a new, cached ResultSequence instance is created and populated with the XdmItems in the sequence. If the non-cached input ResultSequence has been partially iterated, only the remaining XdmItems will be cached. If the current item is not fetchable (ResultItem.Fetchable is false), it will be ignored.

[Visual Basic]
Function ToCached() As ResultSequence
[C#]
ResultSequence ToCached();

Return Value

A Cached ResultSequence.

See Also

ResultSequence Interface | Marklogic.Xcc Namespace