Table of Contents

Method Mul

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

Mul(Expression<Func<TDocument, double>>, double)

Multiplies the named element by a value (see $mul).

public UpdateBuilder<TDocument> Mul(Expression<Func<TDocument, double>> memberExpression, double value)

Parameters

memberExpression Expression<Func<TDocument, double>>

The member expression.

value double

The value to multiply by.

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).

Mul(Expression<Func<TDocument, int>>, int)

Multiplies the named element by a value (see $mul).

public UpdateBuilder<TDocument> Mul(Expression<Func<TDocument, int>> memberExpression, int value)

Parameters

memberExpression Expression<Func<TDocument, int>>

The member expression.

value int

The value to multiply by.

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).

Mul(Expression<Func<TDocument, long>>, long)

Multiplies the named element by a value (see $mul).

public UpdateBuilder<TDocument> Mul(Expression<Func<TDocument, long>> memberExpression, long value)

Parameters

memberExpression Expression<Func<TDocument, long>>

The member expression.

value long

The value to multiply by.

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).