Method NotIn
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
stringThe name of the element to test.
values
IEnumerable<BsonValue>The values to compare.
Returns
- IMongoQuery
An IMongoQuery.