Table of Contents

Method Type

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

Type(string, BsonType)

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

public static IMongoQuery Type(string name, BsonType type)

Parameters

name string

The name of the element to test.

type BsonType

The type to compare to.

Returns

IMongoQuery

An IMongoQuery.

Type(string, string)

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

public static IMongoQuery Type(string name, string type)

Parameters

name string

The name of the element to test.

type string

The type to compare to.

Returns

IMongoQuery

An IMongoQuery.