Table of Contents

Method BitwiseAnd

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

BitwiseAnd(string, int)

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

public UpdateBuilder BitwiseAnd(string name, int value)

Parameters

name string

The name of the element to be modified.

value int

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

Returns

UpdateBuilder

The builder (so method calls can be chained).

BitwiseAnd(string, long)

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

public UpdateBuilder BitwiseAnd(string name, long value)

Parameters

name string

The name of the element to be modified.

value long

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

Returns

UpdateBuilder

The builder (so method calls can be chained).