Click or drag to resize

CollationWith Method

Creates a new Collation instance with some properties changed.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
public Collation With(
	Optional<string> locale = default,
	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


locale (Optional)
Type: MongoDB.DriverOptionalString
The new locale.
caseLevel (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The new case level.
caseFirst (Optional)
Type: MongoDB.DriverOptionalNullableCollationCaseFirst
The new case first.
strength (Optional)
Type: MongoDB.DriverOptionalNullableCollationStrength
The new strength.
numericOrdering (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The new numeric ordering.
alternate (Optional)
Type: MongoDB.DriverOptionalNullableCollationAlternate
The new alternate.
maxVariable (Optional)
Type: MongoDB.DriverOptionalNullableCollationMaxVariable
The new maximum variable.
normalization (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The new normalization.
backwards (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The new backwards.

Return Value

Type: Collation
A new Collation instance.
See Also