Click or drag to resize

Collation Constructor

Initializes a new instance of the Collation class.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax
public Collation(
	string locale,
	Optional<bool?> caseLevel = default,
	Optional<CollationCaseFirst?> caseFirst = default,
	Optional<CollationStrength?> strength = default,
	Optional<bool?> numericOrdering = default,
	Optional<CollationAlternate?> alternate = default,
	Optional<CollationMaxVariable?> maxVariable = default,
	Optional<bool?> normalization = default,
	Optional<bool?> backwards = default
)

Parameters

locale
Type: System.String
The locale.
caseLevel (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
The case level.
caseFirst (Optional)
Type: MongoDB.Driver.Optional<Nullable<CollationCaseFirst>>
The case that is ordered first.
strength (Optional)
Type: MongoDB.Driver.Optional<Nullable<CollationStrength>>
The strength.
numericOrdering (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
Whether numbers are ordered numerically.
alternate (Optional)
Type: MongoDB.Driver.Optional<Nullable<CollationAlternate>>
The alternate.
maxVariable (Optional)
Type: MongoDB.Driver.Optional<Nullable<CollationMaxVariable>>
The maximum variable.
normalization (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
The normalization.
backwards (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
Whether secondary differences are to be considered in reverse order.
See Also