Click or drag to resize

ResultCursorExtensionsToListAsync Method (IResultCursor)

Pull all records in the result stream into memory and return in a list.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
public static Task<List<IRecord>> ToListAsync(
	this IResultCursor result
)

Parameters

result
Type: Neo4j.DriverIResultCursor
The result stream.

Return Value

Type: TaskListIRecord
A list with all records in the result stream.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IResultCursor. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also