DeferredAsyncCursor<TDocument> Class |
Namespace: MongoDB.Driver
The DeferredAsyncCursor<TDocument> type exposes the following members.
Name | Description | |
---|---|---|
![]() | DeferredAsyncCursor<TDocument> |
Initializes a new instance of the DeferredAsyncCursor<TDocument> class.
|
Name | Description | |
---|---|---|
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MoveNext |
Moves to the next batch of documents.
|
![]() | MoveNextAsync |
Moves to the next batch of documents.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | Any<TDocument> |
Determines whether the cursor contains any documents.
(Defined by IAsyncCursorExtensions.) |
![]() | AnyAsync<TDocument> |
Determines whether the cursor contains any documents.
(Defined by IAsyncCursorExtensions.) |
![]() | First<TDocument> |
Returns the first document of a cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | FirstAsync<TDocument> |
Returns the first document of a cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | FirstOrDefault<TDocument> |
Returns the first document of a cursor, or a default value if the cursor contains no documents.
(Defined by IAsyncCursorExtensions.) |
![]() | FirstOrDefaultAsync<TDocument> |
Returns the first document of the cursor, or a default value if the cursor contains no documents.
(Defined by IAsyncCursorExtensions.) |
![]() | ForEachAsync<TDocument>(Func<TDocument, Task>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | ForEachAsync<TDocument>(Func<TDocument, Int32, Task>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | ForEachAsync<TDocument>(Action<TDocument>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | ForEachAsync<TDocument>(Action<TDocument, Int32>, CancellationToken) | Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | Single<TDocument> |
Returns the only document of a cursor. This method throws an exception if the cursor does not contain exactly one document.
(Defined by IAsyncCursorExtensions.) |
![]() | SingleAsync<TDocument> |
Returns the only document of a cursor. This method throws an exception if the cursor does not contain exactly one document.
(Defined by IAsyncCursorExtensions.) |
![]() | SingleOrDefault<TDocument> |
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.
(Defined by IAsyncCursorExtensions.) |
![]() | SingleOrDefaultAsync<TDocument> |
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.
(Defined by IAsyncCursorExtensions.) |
![]() | ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) |
![]() | ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) |
![]() | ToEnumerable<TDocument> |
Wraps a cursor in an IEnumerable that can be enumerated one time.
(Defined by IAsyncCursorExtensions.) |
![]() | ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |
![]() | ToList<TDocument> |
Returns a list containing all the documents returned by a cursor.
(Defined by IAsyncCursorExtensions.) |
![]() | ToListAsync<TDocument> |
Returns a list containing all the documents returned by a cursor.
(Defined by IAsyncCursorExtensions.) |