Share via


Metodo IDbAsyncEnumerator.MoveNextAsync

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Sposta l'enumeratore all'elemento successivo nella sequenza, restituendo il risultato in modo asincrono.

Spazio dei nomi:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Function MoveNextAsync ( _
    cancellationToken As CancellationToken _
) As Task(Of Boolean)
'Utilizzo
Dim instance As IDbAsyncEnumerator 
Dim cancellationToken As CancellationToken 
Dim returnValue As Task(Of Boolean)

returnValue = instance.MoveNextAsync(cancellationToken)
Task<bool> MoveNextAsync(
    CancellationToken cancellationToken
)
Task<bool>^ MoveNextAsync(
    CancellationToken cancellationToken
)
abstract MoveNextAsync : 
        cancellationToken:CancellationToken -> Task<bool> 
function MoveNextAsync(
    cancellationToken : CancellationToken
) : Task<boolean>

Parametri

Valore restituito

Tipo: System.Threading.Tasks.Task<Boolean>
Attività che rappresenta l'operazione asincrona.Il risultato dell'attività contiene true se l'enumeratore è stato spostato correttamente all'elemento successivo; false, se l'enumeratore ha superato la fine della sequenza.

Vedere anche

Riferimento

IDbAsyncEnumerator Interfaccia

Spazio dei nomi System.Data.Entity.Infrastructure