IAsyncCursorExtensions Class (original) (raw)
Represents extension methods for IAsyncCursor.
Inheritance Hierarchy
SystemObject
MongoDB.DriverIAsyncCursorExtensions
Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public static class IAsyncCursorExtensions
Public NotInheritable Class IAsyncCursorExtensions[] [] [] type IAsyncCursorExtensions = class end
The IAsyncCursorExtensions type exposes the following members.
Methods
| | 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, CancellationToken) | Calls a delegate for each document returned by the cursor. |
|
| ForEachAsyncTDocument(IAsyncCursorTDocument, ActionTDocument, Int32, 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. |
|
| ForEachAsyncTDocument(IAsyncCursorTDocument, FuncTDocument, Int32, 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. |
See Also