FilterDefinitionBuilderTDocumentMod Method (ExpressionFuncTDocument, Object, Int64, Int64) |
Creates a modulo filter.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax public FilterDefinition<TDocument> Mod(
Expression<Func<TDocument, Object>> field,
long modulus,
long remainder
)
Public Function Mod (
field As Expression(Of Func(Of TDocument, Object)),
modulus As Long,
remainder As Long
) As FilterDefinition(Of TDocument)
member Mod :
field : Expression<Func<'TDocument, Object>> *
modulus : int64 *
remainder : int64 -> FilterDefinition<'TDocument>
Parameters
- field
- Type: System.Linq.ExpressionsExpressionFuncTDocument, Object
The field. - modulus
- Type: SystemInt64
The modulus. - remainder
- Type: SystemInt64
The remainder.
Return Value
Type:
FilterDefinitionTDocumentA modulo filter.
See Also