Table of Contents

Method AnyStringIn

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

Creates an in filter for a string array field.

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

Parameters

field FieldDefinition<TDocument, IEnumerable<string>>

The field.

values IEnumerable<StringOrRegularExpression>

The values.

Returns

FilterDefinition<TDocument>

An in filter.

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

Creates an in filter for a string array field.

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

Parameters

field FieldDefinition<TDocument, IEnumerable<string>>

The field.

values StringOrRegularExpression[]

The values.

Returns

FilterDefinition<TDocument>

An in filter.

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

Creates an in filter for a string array field.

public FilterDefinition<TDocument> AnyStringIn(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>

An in filter.

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

Creates an in filter for a string array field.

public FilterDefinition<TDocument> AnyStringIn(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>

An in filter.