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.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
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