Table of Contents

Method BitsAllSet

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

BitsAllSet(FieldDefinition<TDocument>, long)

Creates a bits all set filter.

public FilterDefinition<TDocument> BitsAllSet(FieldDefinition<TDocument> field, long bitmask)

Parameters

field FieldDefinition<TDocument>

The field.

bitmask long

The bitmask.

Returns

FilterDefinition<TDocument>

A bits all set filter.

BitsAllSet(Expression<Func<TDocument, object>>, long)

Creates a bits all set filter.

public FilterDefinition<TDocument> BitsAllSet(Expression<Func<TDocument, object>> field, long bitmask)

Parameters

field Expression<Func<TDocument, object>>

The field.

bitmask long

The bitmask.

Returns

FilterDefinition<TDocument>

A bits all set filter.