Click or drag to resize
QueryBuilderTDocumentTypeTMember Method (ExpressionFuncTDocument, TMember, String)
Tests that the type of the named element is equal to some type (see $type).

Namespace: MongoDB.Driver.Builders
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.4.1
Syntax
public IMongoQuery Type<TMember>(
	Expression<Func<TDocument, TMember>> memberExpression,
	string type
)

Parameters

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

Type Parameters

TMember
The member type.

Return Value

Type: IMongoQuery
An IMongoQuery.
See Also