IMongoCollectionTDocumentCountDocumentsAsync Method

Overload List
 NameDescription
Public methodCountDocumentsAsync(FilterDefinitionTDocument, CountOptions, CancellationToken)
Counts the number of documents in the collection. For a fast estimate of the total documents in a collection see .
Public methodCountDocumentsAsync(IClientSessionHandle, FilterDefinitionTDocument, CountOptions, CancellationToken)
Counts the number of documents in the collection. For a fast estimate of the total documents in a collection see EstimatedDocumentCountAsync(EstimatedDocumentCountOptions, CancellationToken).
Top
See Also

Reference