IAsyncCursorSourceExtensions Class (original) (raw)
Represents extension methods for IAsyncCursorSource.
Inheritance Hierarchy
SystemObject
MongoDB.DriverIAsyncCursorSourceExtensions
Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public static class IAsyncCursorSourceExtensions
Public NotInheritable Class IAsyncCursorSourceExtensions[] [] [] type IAsyncCursorSourceExtensions = class end
The IAsyncCursorSourceExtensions type exposes the following members.
Methods
| | Name | Description | |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | AnyTDocument | Determines whether the cursor returned by a cursor source contains any documents. |
|
| AnyAsyncTDocument | Determines whether the cursor returned by a cursor source contains any documents. |
|
| FirstTDocument | Returns the first document of a cursor returned by a cursor source. |
|
| FirstAsyncTDocument | Returns the first document of a cursor returned by a cursor source. |
|
| FirstOrDefaultTDocument | Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents. |
|
| FirstOrDefaultAsyncTDocument | Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents. |
|
| ForEachAsyncTDocument(IAsyncCursorSourceTDocument, ActionTDocument, CancellationToken) | Calls a delegate for each document returned by the cursor. |
|
| ForEachAsyncTDocument(IAsyncCursorSourceTDocument, ActionTDocument, Int32, CancellationToken) | Calls a delegate for each document returned by the cursor. |
|
| ForEachAsyncTDocument(IAsyncCursorSourceTDocument, FuncTDocument, Task, CancellationToken) | Calls a delegate for each document returned by the cursor. |
|
| ForEachAsyncTDocument(IAsyncCursorSourceTDocument, FuncTDocument, Int32, Task, CancellationToken) | Calls a delegate for each document returned by the cursor. |
|
| SingleTDocument | 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. |
|
| SingleAsyncTDocument | 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. |
|
| SingleOrDefaultTDocument | 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. |
|
| SingleOrDefaultAsyncTDocument | 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. |
|
| ToEnumerableTDocument | Wraps a cursor source in an IEnumerable. Each time GetEnumerator is called a new cursor is fetched from the cursor source. |
|
| ToListTDocument | Returns a list containing all the documents returned by the cursor returned by a cursor source. |
|
| ToListAsyncTDocument | Returns a list containing all the documents returned by the cursor returned by a cursor source. |
See Also