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 | | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public methodStatic member | AnyTDocument | Determines whether the cursor returned by a cursor source contains any documents. | | Public methodStatic member | AnyAsyncTDocument | Determines whether the cursor returned by a cursor source contains any documents. | | Public methodStatic member | FirstTDocument | Returns the first document of a cursor returned by a cursor source. | | Public methodStatic member | FirstAsyncTDocument | Returns the first document of a cursor returned by a cursor source. | | Public methodStatic member | FirstOrDefaultTDocument | Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents. | | Public methodStatic member | FirstOrDefaultAsyncTDocument | Returns the first document of a cursor returned by a cursor source, or a default value if the cursor contains no documents. | | Public methodStatic member | ForEachAsyncTDocument(IAsyncCursorSourceTDocument, ActionTDocument, CancellationToken) | Calls a delegate for each document returned by the cursor. | | Public methodStatic member | ForEachAsyncTDocument(IAsyncCursorSourceTDocument, ActionTDocument, Int32, CancellationToken) | Calls a delegate for each document returned by the cursor. | | Public methodStatic member | ForEachAsyncTDocument(IAsyncCursorSourceTDocument, FuncTDocument, Task, CancellationToken) | Calls a delegate for each document returned by the cursor. | | Public methodStatic member | ForEachAsyncTDocument(IAsyncCursorSourceTDocument, FuncTDocument, Int32, Task, CancellationToken) | Calls a delegate for each document returned by the cursor. | | Public methodStatic member | 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. | | Public methodStatic member | 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. | | Public methodStatic member | 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. | | Public methodStatic member | 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. | | Public methodStatic member | ToEnumerableTDocument | Wraps a cursor source in an IEnumerable. Each time GetEnumerator is called a new cursor is fetched from the cursor source. | | Public methodStatic member | ToListTDocument | Returns a list containing all the documents returned by the cursor returned by a cursor source. | | Public methodStatic member | ToListAsyncTDocument | Returns a list containing all the documents returned by the cursor returned by a cursor source. |

Top

See Also

Reference