Table of Contents

Method AnyStringNin

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

AnyStringNin(FieldDefinition<TDocument, IEnumerable<string>>, IEnumerable<StringOrRegularExpression>)

Creates a not in filter for a string array field.

public FilterDefinition<TDocument> AnyStringNin(FieldDefinition<TDocument, IEnumerable<string>> field, IEnumerable<StringOrRegularExpression> values)

Parameters

field FieldDefinition<TDocument, IEnumerable<string>>

The field.

values IEnumerable<StringOrRegularExpression>

The values.

Returns

FilterDefinition<TDocument>

A not in filter.

AnyStringNin(FieldDefinition<TDocument, IEnumerable<string>>, params StringOrRegularExpression[])

Creates a not in filter for a string array field.

public FilterDefinition<TDocument> AnyStringNin(FieldDefinition<TDocument, IEnumerable<string>> field, params StringOrRegularExpression[] values)

Parameters

field FieldDefinition<TDocument, IEnumerable<string>>

The field.

values StringOrRegularExpression[]

The values.

Returns

FilterDefinition<TDocument>

A not in filter.

AnyStringNin(Expression<Func<TDocument, IEnumerable<string>>>, IEnumerable<StringOrRegularExpression>)

Creates a not in filter for a string array field.

public FilterDefinition<TDocument> AnyStringNin(Expression<Func<TDocument, IEnumerable<string>>> field, IEnumerable<StringOrRegularExpression> values)

Parameters

field Expression<Func<TDocument, IEnumerable<string>>>

The field.

values IEnumerable<StringOrRegularExpression>

The values.

Returns

FilterDefinition<TDocument>

A not in filter.

AnyStringNin(Expression<Func<TDocument, IEnumerable<string>>>, params StringOrRegularExpression[])

Creates a not in filter for a string array field.

public FilterDefinition<TDocument> AnyStringNin(Expression<Func<TDocument, IEnumerable<string>>> field, params StringOrRegularExpression[] values)

Parameters

field Expression<Func<TDocument, IEnumerable<string>>>

The field.

values StringOrRegularExpression[]

The values.

Returns

FilterDefinition<TDocument>

A not in filter.