| IAsyncCursorSourceExtensions Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: MongoDB.Driver
 Syntax
SyntaxThe IAsyncCursorSourceExtensions type exposes the following members.
 Methods
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
See Also