Click or drag to resize

Collation Class

Represents a MongoDB collation.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverCollation

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public sealed class Collation : IEquatable<Collation>, 
	IConvertibleToBsonDocument

The Collation type exposes the following members.

Constructors
  NameDescription
Public methodCollation
Initializes a new instance of the Collation class.
Top
Properties
  NameDescription
Public propertyAlternate
Gets whether spaces and punctuation are considered base characters.
Public propertyBackwards
Gets whether secondary differencs are to be considered in reverse order.
Public propertyCaseFirst
Gets whether upper case or lower case is ordered first.
Public propertyCaseLevel
Gets whether the collation is case sensitive at strength 1 and 2.
Public propertyLocale
Gets the locale.
Public propertyMaxVariable
Gets which characters are affected by the alternate: "Shifted".
Public propertyNormalization
Gets the normalization.
Public propertyNumericOrdering
Gets whether numbers are ordered numerically.
Public propertyStatic memberSimple
Gets the simple binary compare collation.
Public propertyStrength
Gets the strength.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(Collation)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberFromBsonDocument
Creates a Collation instance from a BsonDocument.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToBsonDocument
Converts this object to a BsonDocument.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodWith
Creates a new Collation instance with some properties changed.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also