Table of Contents

Method Not

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

Not(IMongoQuery)

Tests that the inverse of the query is true (see $not).

public IMongoQuery Not(IMongoQuery query)

Parameters

query IMongoQuery

The query.

Returns

IMongoQuery

An IMongoQuery.