Table of Contents

Method Ne

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Ne<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a not equal filter.

public FilterDefinition<TDocument> Ne<TField>(FieldDefinition<TDocument, TField> field, TField value)

Parameters

field FieldDefinition<TDocument, TField>

The field.

value TField

The value.

Returns

FilterDefinition<TDocument>

A not equal filter.

Type Parameters

TField

The type of the field.

Ne<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a not equal filter.

public FilterDefinition<TDocument> Ne<TField>(Expression<Func<TDocument, TField>> field, TField value)

Parameters

field Expression<Func<TDocument, TField>>

The field.

value TField

The value.

Returns

FilterDefinition<TDocument>

A not equal filter.

Type Parameters

TField

The type of the field.