EntityDataReader.ReadAsync Method

 

Namespace:   System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodReadAsync()

(Inherited from DbDataReader.)

System_CAPS_pubmethodReadAsync(CancellationToken)

Asynchronously moves the reader to the next row of the current result set(Overrides DbDataReader.ReadAsync(CancellationToken).)


EntityDataReader.ReadAsync Method (CancellationToken)

Asynchronously moves the reader to the next row of the current result set

public override Task<bool> ReadAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.Threading.CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Return Value

Type: System.Threading.Tasks.Task<Boolean>

A task that represents the asynchronous operation. The task result contains true if there are more rows; false otherwise.