Method BitsAnySet
BitsAnySet(FieldDefinition<TDocument>, long)
Creates a bits any set filter.
public FilterDefinition<TDocument> BitsAnySet(FieldDefinition<TDocument> field, long bitmask)
Parameters
field
FieldDefinition<TDocument>The field.
bitmask
longThe bitmask.
Returns
- FilterDefinition<TDocument>
A bits any set filter.
BitsAnySet(Expression<Func<TDocument, object>>, long)
Creates a bits any set filter.
public FilterDefinition<TDocument> BitsAnySet(Expression<Func<TDocument, object>> field, long bitmask)
Parameters
field
Expression<Func<TDocument, object>>The field.
bitmask
longThe bitmask.
Returns
- FilterDefinition<TDocument>
A bits any set filter.