IAsyncCursor(TDocument).MoveNextAsync Method (original) (raw)

IAsyncCursorTDocumentMoveNextAsync Method

Moves to the next batch of documents.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

Task MoveNextAsync( CancellationToken cancellationToken = null )

Function MoveNextAsync ( Optional cancellationToken As CancellationToken = Nothing ) As Task(Of Boolean)

abstract MoveNextAsync : ?cancellationToken : CancellationToken (* Defaults: let _cancellationToken = defaultArg cancellationToken null *) -> Task

Parameters

cancellationToken (Optional)

Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskBoolean
A Task whose result indicates whether any more documents are available.

See Also

Reference