IAsyncCursorSource<TDocument> Interface |
Namespace: MongoDB.Driver
The IAsyncCursorSource<TDocument> type exposes the following members.
Name | Description | |
---|---|---|
![]() | ToCursor |
Executes the operation and returns a cursor to the results.
|
![]() | ToCursorAsync |
Executes the operation and returns a cursor to the results.
|
Name | Description | |
---|---|---|
![]() | Any<TDocument> |
Determines whether the cursor returned by a cursor source contains any documents.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | AnyAsync<TDocument> |
Determines whether the cursor returned by a cursor source contains any documents.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | First<TDocument> |
Returns the first document of a cursor returned by a cursor source.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | FirstAsync<TDocument> |
Returns the first document of a cursor returned by a cursor source.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | FirstOrDefault<TDocument> |
Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | FirstOrDefaultAsync<TDocument> |
Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | ForEachAsync<TDocument>(Func<TDocument, Task>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | ForEachAsync<TDocument>(Func<TDocument, Int32, Task>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | ForEachAsync<TDocument>(Action<TDocument>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | ForEachAsync<TDocument>(Action<TDocument, Int32>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | Single<TDocument> |
Returns the only document of a cursor returned by a cursor source. This method throws an exception if the cursor does not contain exactly one document.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | SingleAsync<TDocument> |
Returns the only document of a cursor returned by a cursor source. This method throws an exception if the cursor does not contain exactly one document.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | SingleOrDefault<TDocument> |
Returns the only document of a cursor returned by a cursor source, 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 IAsyncCursorSourceExtensions.) |
![]() | SingleOrDefaultAsync<TDocument> |
Returns the only document of a cursor returned by a cursor source, 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 IAsyncCursorSourceExtensions.) |
![]() | ToEnumerable<TDocument> |
Wraps a cursor source in an IEnumerable. Each time GetEnumerator is called a new cursor is fetched from the cursor source.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | ToList<TDocument> |
Returns a list containing all the documents returned by the cursor returned by a cursor source.
(Defined by IAsyncCursorSourceExtensions.) |
![]() | ToListAsync<TDocument> |
Returns a list containing all the documents returned by the cursor returned by a cursor source.
(Defined by IAsyncCursorSourceExtensions.) |