Creates a new Collation instance with some properties changed.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
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
)
Public Function With (
Optional locale As Optional(Of String) = Nothing,
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
) 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 null
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 (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