Table of Contents

Interface IAsyncCursor<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

Represents an asynchronous cursor.

public interface IAsyncCursor<out TDocument> : IDisposable

Type Parameters

TDocument

The type of the document.

Inherited Members
Extension Methods

Properties

Current

Gets the current batch of documents.

IEnumerable<out TDocument> Current { get; }

Property Value

IEnumerable<TDocument>

The current batch of documents.

Methods

MoveNext(CancellationToken)

Moves to the next batch of documents.

bool MoveNext(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

bool

Whether any more documents are available.

MoveNextAsync(CancellationToken)

Moves to the next batch of documents.

Task<bool> MoveNextAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task<bool>

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