Table of Contents

Method AnyStringIn

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

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

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

public static bool AnyStringIn(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 present in values.

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

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

public static bool AnyStringIn(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 present in values.