Table of Contents

Method In

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

In(string, IEnumerable<BsonValue>)

Tests that the value of the named element is equal to one of a list of values (see $in).

public static IMongoQuery In(string name, IEnumerable<BsonValue> values)

Parameters

name string

The name of the element to test.

values IEnumerable<BsonValue>

The values to compare to.

Returns

IMongoQuery

An IMongoQuery.