Click or drag to resize

IMongoCollectionExtensions.CountDocumentsAsync Method

Overload List
  NameDescription
Public methodStatic memberCountDocumentsAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken)
Counts the number of documents in the collection.
Public methodStatic memberCountDocumentsAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken)
Counts the number of documents in the collection.
Top
See Also