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.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
public Collation With(
	Optional<string> locale = null,
	Optional<Nullable<bool>> caseLevel = null,
	Optional<Nullable<CollationCaseFirst>> caseFirst = null,
	Optional<Nullable<CollationStrength>> strength = null,
	Optional<Nullable<bool>> numericOrdering = null,
	Optional<Nullable<CollationAlternate>> alternate = null,
	Optional<Nullable<CollationMaxVariable>> maxVariable = null,
	Optional<Nullable<bool>> normalization = null,
	Optional<Nullable<bool>> backwards = null
)

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