Table of Contents

Method NotIn

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

NotIn(string, IEnumerable<BsonValue>)

Tests that the value of the named element is not equal to any item in a list of values (see $nin).

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

Parameters

name string

The name of the element to test.

values IEnumerable<BsonValue>

The values to compare.

Returns

IMongoQuery

An IMongoQuery.