IAsyncCursorSourceExtensions Class |
Namespace: MongoDB.Driver
The IAsyncCursorSourceExtensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Any<TDocument> |
Determines whether the cursor returned by a cursor source contains any documents.
|
![]() ![]() | AnyAsync<TDocument> |
Determines whether the cursor returned by a cursor source contains any documents.
|
![]() ![]() | First<TDocument> |
Returns the first document of a cursor returned by a cursor source.
|
![]() ![]() | FirstAsync<TDocument> |
Returns the first document of a cursor returned by a cursor source.
|
![]() ![]() | FirstOrDefault<TDocument> |
Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents.
|
![]() ![]() | FirstOrDefaultAsync<TDocument> |
Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents.
|
![]() ![]() | ForEachAsync<TDocument>(IAsyncCursorSource<TDocument>, Action<TDocument>, CancellationToken) |
Calls a delegate for each document returned by the cursor.
|
![]() ![]() | ForEachAsync<TDocument>(IAsyncCursorSource<TDocument>, Action<TDocument, Int32>, CancellationToken) |
Calls a delegate for each document returned by the cursor.
|
![]() ![]() | ForEachAsync<TDocument>(IAsyncCursorSource<TDocument>, Func<TDocument, Task>, CancellationToken) |
Calls a delegate for each document returned by the cursor.
|
![]() ![]() | ForEachAsync<TDocument>(IAsyncCursorSource<TDocument>, Func<TDocument, Int32, Task>, CancellationToken) |
Calls a delegate for each document returned by the cursor.
|
![]() ![]() | 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.
|
![]() ![]() | 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.
|
![]() ![]() | 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.
|
![]() ![]() | 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.
|
![]() ![]() | ToEnumerable<TDocument> |
Wraps a cursor source in an IEnumerable. Each time GetEnumerator is called a new cursor is fetched from the cursor source.
|
![]() ![]() | ToList<TDocument> |
Returns a list containing all the documents returned by the cursor returned by a cursor source.
|
![]() ![]() | ToListAsync<TDocument> |
Returns a list containing all the documents returned by the cursor returned by a cursor source.
|