Method Count
Count()
Counts the number of documents in this collection.
public virtual long Count()
Returns
- long
The number of documents in this collection.
Count(CountArgs)
Counts the number of documents in this collection that match a query.
public virtual long Count(CountArgs args)
Parameters
args
CountArgsThe args.
Returns
- long
The number of documents in this collection that match the query.
Count(IMongoQuery)
Counts the number of documents in this collection that match a query.
public virtual long Count(IMongoQuery query)
Parameters
query
IMongoQueryThe query (usually a QueryDocument or constructed using the Query builder).
Returns
- long
The number of documents in this collection that match the query.