Method AnyStringIn
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
AnyStringIn(IEnumerable, IEnumerable)
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
The values to test.
values
IEnumerable<StringOrRegularExpression>
The values to test against.
Returns
True if any value in s is present in values.
AnyStringIn(IEnumerable, 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
The values to test.
values
StringOrRegularExpression[]
The values to test against.
Returns
True if any value in s is present in values.