Table of Contents

Method Size

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Size(FieldDefinition<TDocument>, int)

Creates a size filter.

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

Parameters

field FieldDefinition<TDocument>

The field.

size int

The size.

Returns

FilterDefinition<TDocument>

A size filter.

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

Creates a size filter.

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

Parameters

field Expression<Func<TDocument, object>>

The field.

size int

The size.

Returns

FilterDefinition<TDocument>

A size filter.