Table of Contents

Class RangeOptions

Namespace
MongoDB.Driver.Encryption
Assembly
MongoDB.Driver.dll

Range options.

public sealed class RangeOptions
Inheritance
RangeOptions
Inherited Members

Remarks

The Range algorithm is experimental only. It is not intended for public use. RangeOpts specifies index options for a Queryable Encryption field supporting "rangePreview" queries. min, max, sparsity, and range must match the values set in the encryptedFields of the destination collection. For double and decimal128, min/max/precision must all be set, or all be unset. RangeOptions only applies when algorithm is "rangePreview".

Constructors

RangeOptions(long, Optional<BsonValue>, Optional<BsonValue>, Optional<int?>)

Initializes a new instance of the RangeOptions class.

Properties

Max

Maximum value.

Min

Minimum value.

Precision

Gets the precision.

Sparsity

Gets the sparsity.