MongoDB.Driver.Builders.QueryConditionList.Type C# (CSharp) Method

Type() public method

Adds a $type test to the query.
public Type ( BsonType type ) : QueryConditionList
type BsonType The type.
return QueryConditionList
        public QueryConditionList Type(
            BsonType type
        ) {
            conditions.Add("$type", (int) type);
            return this;
        }