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.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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