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
)
Public Function With (
Optional locale As Optional(Of String) = Nothing,
Optional caseLevel As Optional(Of Boolean?) = Nothing,
Optional caseFirst As Optional(Of CollationCaseFirst?) = Nothing,
Optional strength As Optional(Of CollationStrength?) = Nothing,
Optional numericOrdering As Optional(Of Boolean?) = Nothing,
Optional alternate As Optional(Of CollationAlternate?) = Nothing,
Optional maxVariable As Optional(Of CollationMaxVariable?) = Nothing,
Optional normalization As Optional(Of Boolean?) = Nothing,
Optional backwards As Optional(Of Boolean?) = Nothing
) As Collation
member With :
?locale : Optional<string> *
?caseLevel : Optional<Nullable<bool>> *
?caseFirst : Optional<Nullable<CollationCaseFirst>> *
?strength : Optional<Nullable<CollationStrength>> *
?numericOrdering : Optional<Nullable<bool>> *
?alternate : Optional<Nullable<CollationAlternate>> *
?maxVariable : Optional<Nullable<CollationMaxVariable>> *
?normalization : Optional<Nullable<bool>> *
?backwards : Optional<Nullable<bool>>
(* Defaults:
let _locale = defaultArg locale new Optional<string>()
let _caseLevel = defaultArg caseLevel new Optional<Nullable<bool>>()
let _caseFirst = defaultArg caseFirst new Optional<Nullable<CollationCaseFirst>>()
let _strength = defaultArg strength new Optional<Nullable<CollationStrength>>()
let _numericOrdering = defaultArg numericOrdering new Optional<Nullable<bool>>()
let _alternate = defaultArg alternate new Optional<Nullable<CollationAlternate>>()
let _maxVariable = defaultArg maxVariable new Optional<Nullable<CollationMaxVariable>>()
let _normalization = defaultArg normalization new Optional<Nullable<bool>>()
let _backwards = defaultArg backwards new Optional<Nullable<bool>>()
*)
-> Collation
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:
CollationA new Collation instance.
See Also