Initializes a new instance of the
Collation class.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax public Collation(
string locale,
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 Sub New (
locale As String,
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
)
new :
locale : 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 _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
- Type: SystemString
The locale. - caseLevel (Optional)
- Type: MongoDB.DriverOptionalNullableBoolean
The case level. - caseFirst (Optional)
- Type: MongoDB.DriverOptionalNullableCollationCaseFirst
The case that is ordered first. - strength (Optional)
- Type: MongoDB.DriverOptionalNullableCollationStrength
The strength. - numericOrdering (Optional)
- Type: MongoDB.DriverOptionalNullableBoolean
Whether numbers are ordered numerically. - alternate (Optional)
- Type: MongoDB.DriverOptionalNullableCollationAlternate
The alternate. - maxVariable (Optional)
- Type: MongoDB.DriverOptionalNullableCollationMaxVariable
The maximum variable. - normalization (Optional)
- Type: MongoDB.DriverOptionalNullableBoolean
The normalization. - backwards (Optional)
- Type: MongoDB.DriverOptionalNullableBoolean
Whether secondary differences are to be considered in reverse order.
See Also