Table of Contents

Method Max

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

Max(string, BsonValue)

Updates the named element if and only if the provided value is greater than its current value (see $max).

public UpdateBuilder Max(string name, BsonValue value)

Parameters

name string

The name of the element to be updated.

value BsonValue

The value to use.

Returns

UpdateBuilder

The builder (so method calls can be chained).