Click or drag to resize
IAsyncCursorSourceTDocument Interface
Represents an operation that will return a cursor when executed.

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

Type Parameters

TDocument
The type of the document.

The IAsyncCursorSourceTDocument type exposes the following members.

Methods
  NameDescription
Public methodToCursorAsync
Executes the operation and returns a cursor to the results.
Top
Extension Methods
  NameDescription
Public Extension MethodForEachAsyncTDocument(FuncTDocument, Task, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsyncTDocument(FuncTDocument, Int32, Task, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsyncTDocument(ActionTDocument, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsyncTDocument(ActionTDocument, Int32, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodToListAsyncTDocument
Returns a list containing all the documents returned by the cursor returned by a cursor source.
(Defined by IAsyncCursorSourceExtensions.)
Top
See Also