Click or drag to resize

QueryTDocumentTypeTValue Method (ExpressionFuncTDocument, IEnumerableTValue, String)

Tests that any of the values in the named array element is equal to some type (see $type).

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
public static IMongoQuery Type<TValue>(
	Expression<Func<TDocument, IEnumerable<TValue>>> memberExpression,
	string type
)

Parameters

memberExpression
Type: System.Linq.ExpressionsExpressionFuncTDocument, IEnumerableTValue
The member expression representing the element to test.
type
Type: SystemString
The type to compare to.

Type Parameters

TValue
The type of the value.

Return Value

Type: IMongoQuery
An IMongoQuery.
See Also