IAsyncCursorExtensions Methods |
The IAsyncCursorExtensions type exposes the following members.
Name | Description | |
---|---|---|
AnyTDocument |
Determines whether the cursor contains any documents.
| |
AnyAsyncTDocument |
Determines whether the cursor contains any documents.
| |
FirstTDocument |
Returns the first document of a cursor.
| |
FirstAsyncTDocument |
Returns the first document of a cursor.
| |
FirstOrDefaultTDocument |
Returns the first document of a cursor, or a default value if the cursor contains no documents.
| |
FirstOrDefaultAsyncTDocument |
Returns the first document of the cursor, or a default value if the cursor contains no documents.
| |
ForEachAsyncTDocument(IAsyncCursorTDocument, ActionTDocument, Int32, CancellationToken) |
Calls a delegate for each document returned by the cursor.
| |
ForEachAsyncTDocument(IAsyncCursorTDocument, ActionTDocument, CancellationToken) |
Calls a delegate for each document returned by the cursor.
| |
ForEachAsyncTDocument(IAsyncCursorTDocument, FuncTDocument, Int32, Task, CancellationToken) |
Calls a delegate for each document returned by the cursor.
| |
ForEachAsyncTDocument(IAsyncCursorTDocument, FuncTDocument, Task, CancellationToken) |
Calls a delegate for each document returned by the cursor.
| |
SingleTDocument |
Returns the only document of a cursor. This method throws an exception if the cursor does not contain exactly one document.
| |
SingleAsyncTDocument |
Returns the only document of a cursor. This method throws an exception if the cursor does not contain exactly one document.
| |
SingleOrDefaultTDocument |
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.
| |
SingleOrDefaultAsyncTDocument |
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.
| |
ToEnumerableTDocument |
Wraps a cursor in an IEnumerable that can be enumerated one time.
| |
ToListTDocument |
Returns a list containing all the documents returned by a cursor.
| |
ToListAsyncTDocument |
Returns a list containing all the documents returned by a cursor.
|