Table of Contents

Method Size

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

Size(string, int)

Tests that the size of the named array is equal to some value (see $size).

public static IMongoQuery Size(string name, int size)

Parameters

name string

The name of the element to test.

size int

The size to compare to.

Returns

IMongoQuery

An IMongoQuery.