Table of Contents

Method BitwiseAnd

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

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

Sets the named element to the bitwise and of its value with another value (see $bit with "and").

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

Parameters

memberExpression Expression<Func<TDocument, int>>

The member expression.

value int

The value to be and-ed with the current value.

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).

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

Sets the named element to the bitwise and of its value with another value (see $bit with "and").

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

Parameters

memberExpression Expression<Func<TDocument, long>>

The member expression.

value long

The value to be and-ed with the current value.

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).