Click or drag to resize

Collation.With Method

Creates a new Collation instance with some properties changed.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
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.Driver.Optional<String>
The new locale.
caseLevel (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
The new case level.
caseFirst (Optional)
Type: MongoDB.Driver.Optional<Nullable<CollationCaseFirst>>
The new case first.
strength (Optional)
Type: MongoDB.Driver.Optional<Nullable<CollationStrength>>
The new strength.
numericOrdering (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
The new numeric ordering.
alternate (Optional)
Type: MongoDB.Driver.Optional<Nullable<CollationAlternate>>
The new alternate.
maxVariable (Optional)
Type: MongoDB.Driver.Optional<Nullable<CollationMaxVariable>>
The new maximum variable.
normalization (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
The new normalization.
backwards (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
The new backwards.

Return Value

Type: Collation
A new Collation instance.
See Also