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.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
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: SystemString
The locale.
caseLevel (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The case level.
caseFirst (Optional)
Type: MongoDB.DriverOptionalNullableCollationCaseFirst
The case that is ordered first.
strength (Optional)
Type: MongoDB.DriverOptionalNullableCollationStrength
The strength.
numericOrdering (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
Whether numbers are ordered numerically.
alternate (Optional)
Type: MongoDB.DriverOptionalNullableCollationAlternate
The alternate.
maxVariable (Optional)
Type: MongoDB.DriverOptionalNullableCollationMaxVariable
The maximum variable.
normalization (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The normalization.
backwards (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
Whether secondary differences are to be considered in reverse order.
See Also