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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
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
)

Parameters

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