Class Collation
Represents a MongoDB collation.
public sealed class Collation : IEquatable<Collation>, IConvertibleToBsonDocument
- Inheritance
-
Collation
- Implements
- Inherited Members
Constructors
- Collation(string, Optional<bool?>, Optional<CollationCaseFirst?>, Optional<CollationStrength?>, Optional<bool?>, Optional<CollationAlternate?>, Optional<CollationMaxVariable?>, Optional<bool?>, Optional<bool?>)
Initializes a new instance of the Collation class.
Properties
- Alternate
Gets whether spaces and punctuation are considered base characters.
- Backwards
Gets whether secondary differencs are to be considered in reverse order.
- CaseFirst
Gets whether upper case or lower case is ordered first.
- CaseLevel
Gets whether the collation is case sensitive at strength 1 and 2.
- Locale
Gets the locale.
- MaxVariable
Gets which characters are affected by the alternate: "Shifted".
- Normalization
Gets the normalization.
- NumericOrdering
Gets whether numbers are ordered numerically.
- Simple
Gets the simple binary compare collation.
- Strength
Gets the strength.
Methods
- Equals(Collation)
Indicates whether the current object is equal to another object of the same type.
- Equals(object)
Determines whether the specified object is equal to the current object.
- FromBsonDocument(BsonDocument)
Creates a Collation instance from a BsonDocument.
- GetHashCode()
Serves as the default hash function.
- ToBsonDocument()
Converts this object to a BsonDocument.
- ToString()
Returns a string that represents the current object.
- With(Optional<string>, Optional<bool?>, Optional<CollationCaseFirst?>, Optional<CollationStrength?>, Optional<bool?>, Optional<CollationAlternate?>, Optional<CollationMaxVariable?>, Optional<bool?>, Optional<bool?>)
Creates a new Collation instance with some properties changed.