Initializes a new instance of the
Collation class.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public Collation(
string locale,
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
)
Public Sub New (
locale As String,
Optional caseLevel As Optional(Of Nullable(Of Boolean)) = Nothing,
Optional caseFirst As Optional(Of Nullable(Of CollationCaseFirst)) = Nothing,
Optional strength As Optional(Of Nullable(Of CollationStrength)) = Nothing,
Optional numericOrdering As Optional(Of Nullable(Of Boolean)) = Nothing,
Optional alternate As Optional(Of Nullable(Of CollationAlternate)) = Nothing,
Optional maxVariable As Optional(Of Nullable(Of CollationMaxVariable)) = Nothing,
Optional normalization As Optional(Of Nullable(Of Boolean)) = Nothing,
Optional backwards As Optional(Of Nullable(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 null
let _caseFirst = defaultArg caseFirst null
let _strength = defaultArg strength null
let _numericOrdering = defaultArg numericOrdering null
let _alternate = defaultArg alternate null
let _maxVariable = defaultArg maxVariable null
let _normalization = defaultArg normalization null
let _backwards = defaultArg backwards null
*)
-> 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