Method Any
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Any(IAsyncCursor, CancellationToken)
Determines whether the cursor contains any documents.
public static bool Any<TDocument>(this IAsyncCursor<TDocument> cursor, CancellationToken cancellationToken = default)Parameters
cursor IAsyncCursor
The cursor.
cancellationToken CancellationToken
The cancellation token.
Returns
True if the cursor contains any documents.
Type Parameters
TDocument
The type of the document.