Table of Contents

Method StringNin

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

StringNin(string, IEnumerable<StringOrRegularExpression>)

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

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

Parameters

s string

The value to test.

values IEnumerable<StringOrRegularExpression>

The values to test against.

Returns

bool

True if s is not present in values.

StringNin(string, params StringOrRegularExpression[])

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

public static bool StringNin(this string s, params StringOrRegularExpression[] values)

Parameters

s string

The value to test.

values StringOrRegularExpression[]

The values to test against.

Returns

bool

True if s is not present in values.