Table of Contents

Method BitwiseOr

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

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

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

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

Parameters

memberExpression Expression<Func<TDocument, int>>

The member expression.

value int

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

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).

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

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

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

Parameters

memberExpression Expression<Func<TDocument, long>>

The member expression.

value long

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

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).