Table of Contents

Method Or

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Or(params FilterDefinition<TDocument>[])

Creates an or filter.

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

Parameters

filters FilterDefinition<TDocument>[]

The filters.

Returns

FilterDefinition<TDocument>

An or filter.

Or(IEnumerable<FilterDefinition<TDocument>>)

Creates an or filter.

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

Parameters

filters IEnumerable<FilterDefinition<TDocument>>

The filters.

Returns

FilterDefinition<TDocument>

An or filter.