Method Any
Any<TDocument>(IAsyncCursorSource<TDocument>, CancellationToken)
Determines whether the cursor returned by a cursor source contains any documents.
public static bool Any<TDocument>(this IAsyncCursorSource<TDocument> source, CancellationToken cancellationToken = default)Parameters
- sourceIAsyncCursorSource<TDocument>
- The source. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- bool
- True if the cursor contains any documents. 
Type Parameters
- TDocument
- The type of the document.