QueryBuilderTDocumentTypeTMember Method (ExpressionFuncTDocument, TMember, BsonType) |
Tests that the type of the named element is equal to some type (see $type).
Namespace: MongoDB.Driver.BuildersAssembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.4.1
Syntax public IMongoQuery Type<TMember>(
Expression<Func<TDocument, TMember>> memberExpression,
BsonType type
)
Public Function Type(Of TMember) (
memberExpression As Expression(Of Func(Of TDocument, TMember)),
type As BsonType
) As IMongoQuery
member Type :
memberExpression : Expression<Func<'TDocument, 'TMember>> *
type : BsonType -> IMongoQuery
Parameters
- memberExpression
- Type: System.Linq.ExpressionsExpressionFuncTDocument, TMember
The member expression representing the element to test. - type
- Type: MongoDB.BsonBsonType
The type to compare to.
Type Parameters
- TMember
- The member type.
Return Value
Type:
IMongoQueryAn IMongoQuery.
See Also