Table of Contents

Method And

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

And(params FilterDefinition<TDocument>[])

Creates an and filter.

public FilterDefinition<TDocument> And(params FilterDefinition<TDocument>[] filters)

Parameters

filters FilterDefinition<TDocument>[]

The filters.

Returns

FilterDefinition<TDocument>

A filter.

And(IEnumerable<FilterDefinition<TDocument>>)

Creates an and filter.

public FilterDefinition<TDocument> And(IEnumerable<FilterDefinition<TDocument>> filters)

Parameters

filters IEnumerable<FilterDefinition<TDocument>>

The filters.

Returns

FilterDefinition<TDocument>

An and filter.