Table of Contents

Method Inc

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

Inc(string, double)

Increments the named element by a value (see $inc).

public static UpdateBuilder Inc(string name, double value)

Parameters

name string

The name of the element to be incremented.

value double

The value to increment by.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Inc(string, int)

Increments the named element by a value (see $inc).

public static UpdateBuilder Inc(string name, int value)

Parameters

name string

The name of the element to be incremented.

value int

The value to increment by.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Inc(string, long)

Increments the named element by a value (see $inc).

public static UpdateBuilder Inc(string name, long value)

Parameters

name string

The name of the element to be incremented.

value long

The value to increment by.

Returns

UpdateBuilder

The builder (so method calls can be chained).