CSMongo.Query.MongoQuery.Count C# (CSharp) Метод

Count() публичный Метод

Determines the total count of records matching this query
public Count ( ) : long
Результат long
        public long Count()
        {
            //request the count using the current parameters
            CollectionCountResult count = MongoDatabaseCommands.CollectionCount(
                this.Collection.Database,
                this.Collection.Name,
                this._Parameters
                );
            return count.TotalDocuments;
        }