Click or drag to resize

Collation Constructor

Initializes a new instance of the Collation class.

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(
	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
)

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