IAsyncCursor<TDocument> Interface |
Namespace: MongoDB.Driver
The IAsyncCursor<TDocument> type exposes the following members.
Name | Description | |
---|---|---|
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
![]() | MoveNext |
Moves to the next batch of documents.
|
![]() | MoveNextAsync |
Moves to the next batch of documents.
|
Name | Description | |
---|---|---|
![]() | Any<TDocument> |
Determines whether the cursor contains any documents.
(Defined by IAsyncCursorExtensions.) |
![]() | AnyAsync<TDocument> |
Determines whether the cursor contains any documents.
(Defined by IAsyncCursorExtensions.) |
![]() | First<TDocument> |
Returns the first document of a cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | FirstAsync<TDocument> |
Returns the first document of a cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | FirstOrDefault<TDocument> |
Returns the first document of a cursor, or a default value if the cursor contains no documents.
(Defined by IAsyncCursorExtensions.) |
![]() | FirstOrDefaultAsync<TDocument> |
Returns the first document of the cursor, or a default value if the cursor contains no documents.
(Defined by IAsyncCursorExtensions.) |
![]() | ForEachAsync<TDocument>(Func<TDocument, Task>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | ForEachAsync<TDocument>(Func<TDocument, Int32, Task>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | ForEachAsync<TDocument>(Action<TDocument>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | ForEachAsync<TDocument>(Action<TDocument, Int32>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | Single<TDocument> |
Returns the only document of a cursor. This method throws an exception if the cursor does not contain exactly one document.
(Defined by IAsyncCursorExtensions.) |
![]() | SingleAsync<TDocument> |
Returns the only document of a cursor. This method throws an exception if the cursor does not contain exactly one document.
(Defined by IAsyncCursorExtensions.) |
![]() | SingleOrDefault<TDocument> |
Returns the only document of a cursor, or a default value if the cursor contains no documents.
This method throws an exception if the cursor contains more than one document.
(Defined by IAsyncCursorExtensions.) |
![]() | SingleOrDefaultAsync<TDocument> |
Returns the only document of a cursor, or a default value if the cursor contains no documents.
This method throws an exception if the cursor contains more than one document.
(Defined by IAsyncCursorExtensions.) |
![]() | ToEnumerable<TDocument> |
Wraps a cursor in an IEnumerable that can be enumerated one time.
(Defined by IAsyncCursorExtensions.) |
![]() | ToList<TDocument> |
Returns a list containing all the documents returned by a cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | ToListAsync<TDocument> |
Returns a list containing all the documents returned by a cursor.
(Defined by IAsyncCursorExtensions.) |