Table of Contents

Method And

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

And(IEnumerable<IMongoQuery>)

Tests that all the queries are true (see $and in newer versions of the server).

public IMongoQuery And(IEnumerable<IMongoQuery> queries)

Parameters

queries IEnumerable<IMongoQuery>

A list of subqueries.

Returns

IMongoQuery

An IMongoQuery.

And(params IMongoQuery[])

Tests that all the queries are true (see $and in newer versions of the server).

public IMongoQuery And(params IMongoQuery[] queries)

Parameters

queries IMongoQuery[]

A list of subqueries.

Returns

IMongoQuery

An IMongoQuery.