Table of Contents

Method SizeLte

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

SizeLte(FieldDefinition<TDocument>, int)

Creates a size less than or equal filter.

public FilterDefinition<TDocument> SizeLte(FieldDefinition<TDocument> field, int size)

Parameters

field FieldDefinition<TDocument>

The field.

size int

The size.

Returns

FilterDefinition<TDocument>

A size less than or equal filter.

SizeLte(Expression<Func<TDocument, object>>, int)

Creates a size less than or equal filter.

public FilterDefinition<TDocument> SizeLte(Expression<Func<TDocument, object>> field, int size)

Parameters

field Expression<Func<TDocument, object>>

The field.

size int

The size.

Returns

FilterDefinition<TDocument>

A size less than or equal filter.