Click or drag to resize
IAsyncCursorSourceExtensions Class
Represents extension methods for IAsyncCursorSource.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverIAsyncCursorSourceExtensions

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.2.0
Syntax
public static class IAsyncCursorSourceExtensions

The IAsyncCursorSourceExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAnyTDocument
Determines whether the cursor returned by a cursor source contains any documents.
Public methodStatic memberAnyAsyncTDocument
Determines whether the cursor returned by a cursor source contains any documents.
Public methodStatic memberFirstTDocument
Returns the first document of a cursor returned by a cursor source.
Public methodStatic memberFirstAsyncTDocument
Returns the first document of a cursor returned by a cursor source.
Public methodStatic memberFirstOrDefaultTDocument
Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents.
Public methodStatic memberFirstOrDefaultAsyncTDocument
Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents.
Public methodStatic memberForEachAsyncTDocument(IAsyncCursorSourceTDocument, ActionTDocument, CancellationToken)
Calls a delegate for each document returned by the cursor.
Public methodStatic memberForEachAsyncTDocument(IAsyncCursorSourceTDocument, ActionTDocument, Int32, CancellationToken)
Calls a delegate for each document returned by the cursor.
Public methodStatic memberForEachAsyncTDocument(IAsyncCursorSourceTDocument, FuncTDocument, Task, CancellationToken)
Calls a delegate for each document returned by the cursor.
Public methodStatic memberForEachAsyncTDocument(IAsyncCursorSourceTDocument, FuncTDocument, Int32, Task, CancellationToken)
Calls a delegate for each document returned by the cursor.
Public methodStatic memberSingleTDocument
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.
Public methodStatic memberSingleAsyncTDocument
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.
Public methodStatic memberSingleOrDefaultTDocument
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.
Public methodStatic memberSingleOrDefaultAsyncTDocument
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.
Public methodStatic memberToEnumerableTDocument
Wraps a cursor source in an IEnumerable. Each time GetEnumerator is called a new cursor is fetched from the cursor source.
Public methodStatic memberToListTDocument
Returns a list containing all the documents returned by the cursor returned by a cursor source.
Public methodStatic memberToListAsyncTDocument
Returns a list containing all the documents returned by the cursor returned by a cursor source.
Top
See Also