Click or drag to resize

ResultCursorExtensionsToListAsyncT Method (IResultCursor, FuncIRecord, T)

Apply the operation on each record in the result stream and return the operation results in a list.

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


Type: Neo4j.DriverIResultCursor
The result stream.
Type: SystemFuncIRecord, T
The operation to carry out on each record.

Type Parameters

The return type of the list

Return Value

Type: TaskListT
A list of collected operation result.

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