Click or drag to resize

IndexKeysDefinitionBuilderTDocument Class

Inheritance Hierarchy
SystemObject
  MongoDB.DriverIndexKeysDefinitionBuilderTDocument

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
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 (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)
Creates a geo haystack index key definition.
Public methodGeoHaystack(FieldDefinitionTDocument, FieldDefinitionTDocument)
Creates a geo haystack index key definition.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (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 (Inherited from Object.)
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