MarkLogic XCC/.Net Library

XdmItem.Cached Property

Indicates whether this item's value is buffered in memory. If so it is safe to call any of the accessor methods (AsString(), AsInputStream(), AsReader()) and to call them repeatedly.

Normally this method will only return false for ResultItem instances which are members of a streaming ResultSequences. However, even such instances may be indicate thstt they are cached if, for example, AsString() is the first method invoked. Doing so will buffer the value which can then be reused for subsequent invocations of AsStream().

[Visual Basic]
Property Cached As Boolean
[C#]
bool Cached {get;}

See Also

XdmItem Interface | Marklogic.Xcc.Types Namespace