Click or drag to resize

ResultCursorExtensionsForEachAsync Method

Read each record in the result stream and apply the operation on each record.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
public static Task<IResultSummary> ForEachAsync(
	this IResultCursor result,
	Action<IRecord> operation


Type: Neo4j.DriverIResultCursor
The result stream.
Type: SystemActionIRecord
The operation is carried out on each record.

Return Value

Type: TaskIResultSummary
The result summary after all records have been processed.

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