Click or drag to resize

FilterDefinitionBuilderTDocumentMod Method (FieldDefinitionTDocument, Int64, Int64)

Creates a modulo filter.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
public FilterDefinition<TDocument> Mod(
	FieldDefinition<TDocument> field,
	long modulus,
	long remainder
)

Parameters

field
Type: MongoDB.DriverFieldDefinitionTDocument
The field.
modulus
Type: SystemInt64
The modulus.
remainder
Type: SystemInt64
The remainder.

Return Value

Type: FilterDefinitionTDocument
A modulo filter.
See Also