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 | | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public methodStatic member | AnyTDocument | Determines whether the cursor contains any documents. | | Public methodStatic member | AnyAsyncTDocument | Determines whether the cursor contains any documents. | | Public methodStatic member | FirstTDocument | Returns the first document of a cursor. | | Public methodStatic member | FirstAsyncTDocument | Returns the first document of a cursor. | | Public methodStatic member | FirstOrDefaultTDocument | Returns the first document of a cursor, or a default value if the cursor contains no documents. | | Public methodStatic member | FirstOrDefaultAsyncTDocument | Returns the first document of the cursor, or a default value if the cursor contains no documents. | | Public methodStatic member | ForEachAsyncTDocument(IAsyncCursorTDocument, ActionTDocument, CancellationToken) | Calls a delegate for each document returned by the cursor. | | Public methodStatic member | ForEachAsyncTDocument(IAsyncCursorTDocument, ActionTDocument, Int32, CancellationToken) | Calls a delegate for each document returned by the cursor. | | Public methodStatic member | ForEachAsyncTDocument(IAsyncCursorTDocument, FuncTDocument, Task, CancellationToken) | Calls a delegate for each document returned by the cursor. | | Public methodStatic member | ForEachAsyncTDocument(IAsyncCursorTDocument, 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. 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. 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, 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, 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 in an IEnumerable that can be enumerated one time. | | Public methodStatic member | ToListTDocument | Returns a list containing all the documents returned by a cursor. | | Public methodStatic member | ToListAsyncTDocument | Returns a list containing all the documents returned by a cursor. |

Top

See Also

Reference