Click or drag to resize

IndexKeysDefinitionBuilderTDocument Class

Inheritance Hierarchy
SystemObject
  MongoDB.DriverIndexKeysDefinitionBuilderTDocument

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public sealed class IndexKeysDefinitionBuilder<TDocument>

Type Parameters

TDocument
The type of the document.

The IndexKeysDefinitionBuilderTDocument type exposes the following members.

Constructors
  NameDescription
Public methodIndexKeysDefinitionBuilderTDocument
Initializes a new instance of the IndexKeysDefinitionBuilderTDocument class
Top
Methods
  NameDescription
Public methodAscending(ExpressionFuncTDocument, Object)
Creates an ascending index key definition.
Public methodAscending(FieldDefinitionTDocument)
Creates an ascending index key definition.
Public methodCombine(IndexKeysDefinitionTDocument)
Creates a combined index keys definition.
Public methodCombine(IEnumerableIndexKeysDefinitionTDocument)
Creates a combined index keys definition.
Public methodDescending(ExpressionFuncTDocument, Object)
Creates a descending index key definition.
Public methodDescending(FieldDefinitionTDocument)
Creates a descending index key definition.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGeo2D(ExpressionFuncTDocument, Object)
Creates a 2d index key definition.
Public methodGeo2D(FieldDefinitionTDocument)
Creates a 2d index key definition.
Public methodGeo2DSphere(ExpressionFuncTDocument, Object)
Creates a 2dsphere index key definition.
Public methodGeo2DSphere(FieldDefinitionTDocument)
Creates a 2dsphere index key definition.
Public methodGeoHaystack(ExpressionFuncTDocument, Object, ExpressionFuncTDocument, Object) Obsolete.
Creates a geo haystack index key definition.
Public methodGeoHaystack(FieldDefinitionTDocument, FieldDefinitionTDocument) Obsolete.
Creates a geo haystack index key definition.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHashed(ExpressionFuncTDocument, Object)
Creates a hashed index key definition.
Public methodHashed(FieldDefinitionTDocument)
Creates a hashed index key definition.
Public methodText(ExpressionFuncTDocument, Object)
Creates a text index key definition.
Public methodText(FieldDefinitionTDocument)
Creates a text index key definition.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWildcard(ExpressionFuncTDocument, Object)
Creates a wildcard index key definition.
Public methodWildcard(FieldDefinitionTDocument)
Creates a wildcard index key definition. The method doesn't expect to specify a wildcard key explicitly.
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