Table of Contents

Method With

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

With(Optional<string>, Optional<bool?>, Optional<CollationCaseFirst?>, Optional<CollationStrength?>, Optional<bool?>, Optional<CollationAlternate?>, Optional<CollationMaxVariable?>, Optional<bool?>, Optional<bool?>)

Creates a new Collation instance with some properties changed.

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<string>

The new locale.

caseLevel Optional<bool?>

The new case level.

caseFirst Optional<CollationCaseFirst?>

The new case first.

strength Optional<CollationStrength?>

The new strength.

numericOrdering Optional<bool?>

The new numeric ordering.

alternate Optional<CollationAlternate?>

The new alternate.

maxVariable Optional<CollationMaxVariable?>

The new maximum variable.

normalization Optional<bool?>

The new normalization.

backwards Optional<bool?>

The new backwards.

Returns

Collation

A new Collation instance.