Click or drag to resize

IResultCursor Interface

Provides access to the result as an asynchronous stream of IRecords. The records in the result is lazily retrieved and could only be visited once in a sequential order.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.4
public interface IResultCursor

The IResultCursor type exposes the following members.

Public propertyCurrent
Returns the current record that has already been read via FetchAsync.
Public methodConsumeAsync
Asynchronously gets the IResultSummary after streaming the whole records to the client. If the records in the result are not fully consumed, then calling this method will discard all remaining records to yield the summary. If you want to obtain the summary without discarding the records, consider buffering the unconsumed result using ToListAsync(IResultCursor). If all records in the records stream are already consumed, then this method will return the summary directly.
Public methodFetchAsync
Asynchronously tries to advance to the next record.
Public methodKeysAsync
Gets the keys in the result.
Public methodPeekAsync
Asynchronously investigates the next upcoming record without changing the current position in the result.
Extension Methods
Calling ToListAsync(IResultCursor) will enumerate the entire stream.
See Also