Table of Contents

Method AnyStringNin

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

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

Returns true if any value in s is not present in values (corresponds to the $nin filter operator).

public static bool AnyStringNin(this IEnumerable<string> s, IEnumerable<StringOrRegularExpression> values)

Parameters

s IEnumerable<string>

The values to test.

values IEnumerable<StringOrRegularExpression>

The values to test against.

Returns

bool

True if any value in s is not present in values.

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

Returns true if any value in s is not present in values (corresponds to the $nin filter operator).

public static bool AnyStringNin(this IEnumerable<string> s, params StringOrRegularExpression[] values)

Parameters

s IEnumerable<string>

The values to test.

values StringOrRegularExpression[]

The values to test against.

Returns

bool

True if any value in s is not present in values.