Click or drag to resize
IAsyncCursorTDocument Interface
Represents an asynchronous cursor.

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

Type Parameters

TDocument
The type of the document.

The IAsyncCursorTDocument 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 MethodForEachAsyncTDocument(FuncTDocument, Task, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.)
Public Extension MethodForEachAsyncTDocument(FuncTDocument, Int32, Task, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.)
Public Extension MethodForEachAsyncTDocument(ActionTDocument, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.)
Public Extension MethodForEachAsyncTDocument(ActionTDocument, Int32, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.)
Public Extension MethodToListAsyncTDocument
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