Click or drag to resize

UpdateBuilder<TDocument>.Inc Method (Expression<Func<TDocument, Int32>>, Int32)

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

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
public UpdateBuilder<TDocument> Inc(
	Expression<Func<TDocument, int>> memberExpression,
	int value
)

Parameters

memberExpression
Type: System.Linq.Expressions.Expression<Func<TDocument, Int32>>
The member expression.
value
Type: System.Int32
The value to increment by.

Return Value

Type: UpdateBuilder<TDocument>
The builder (so method calls can be chained).
See Also