Click or drag to resize
IAsyncCursor<TDocument> Interface
Represents an asynchronous cursor.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.0.1
Syntax
public interface IAsyncCursor<TDocument> : IDisposable

Type Parameters

TDocument
The type of the document.

The IAsyncCursor< TDocument> type exposes the following members.

Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodMoveNextAsync
Moves to the next batch of documents.
Top
Extension Methods
  NameDescription
Public Extension MethodForEachAsync<TDocument>(Func<TDocument, Task>, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.)
Public Extension MethodForEachAsync<TDocument>(Func<TDocument, Int32, Task>, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.)
Public Extension MethodForEachAsync<TDocument>(Action<TDocument>, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.)
Public Extension MethodForEachAsync<TDocument>(Action<TDocument, Int32>, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.)
Public Extension MethodToListAsync<TDocument>
Returns a list containing all the documents returned by a cursor.
(Defined by IAsyncCursorExtensions.)
Top
Properties
  NameDescription
Public propertyCurrent
Gets the current batch of documents.
Top
See Also