Click or drag to resize

IndexKeysDefinitionBuilder<TDocument> Class

Inheritance Hierarchy
System.Object
  MongoDB.Driver.IndexKeysDefinitionBuilder<TDocument>

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

Type Parameters

TDocument
The type of the document.

The IndexKeysDefinitionBuilder<TDocument> type exposes the following members.

Constructors
  NameDescription
Public methodIndexKeysDefinitionBuilder<TDocument>
Initializes a new instance of the IndexKeysDefinitionBuilder<TDocument> class
Top
Methods
  NameDescription
Public methodAscending(Expression<Func<TDocument, Object>>)
Creates an ascending index key definition.
Public methodAscending(FieldDefinition<TDocument>)
Creates an ascending index key definition.
Public methodCombine(IEnumerable<IndexKeysDefinition<TDocument>>)
Creates a combined index keys definition.
Public methodCombine(IndexKeysDefinition<TDocument>[])
Creates a combined index keys definition.
Public methodDescending(Expression<Func<TDocument, Object>>)
Creates a descending index key definition.
Public methodDescending(FieldDefinition<TDocument>)
Creates a descending index key definition.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGeo2D(Expression<Func<TDocument, Object>>)
Creates a 2d index key definition.
Public methodGeo2D(FieldDefinition<TDocument>)
Creates a 2d index key definition.
Public methodGeo2DSphere(Expression<Func<TDocument, Object>>)
Creates a 2dsphere index key definition.
Public methodGeo2DSphere(FieldDefinition<TDocument>)
Creates a 2dsphere index key definition.
Public methodGeoHaystack(Expression<Func<TDocument, Object>>, Expression<Func<TDocument, Object>>) Obsolete.
Creates a geo haystack index key definition.
Public methodGeoHaystack(FieldDefinition<TDocument>, FieldDefinition<TDocument>) 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(Expression<Func<TDocument, Object>>)
Creates a hashed index key definition.
Public methodHashed(FieldDefinition<TDocument>)
Creates a hashed index key definition.
Public methodText(Expression<Func<TDocument, Object>>)
Creates a text index key definition.
Public methodText(FieldDefinition<TDocument>)
Creates a text index key definition.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWildcard(Expression<Func<TDocument, Object>>)
Creates a wildcard index key definition.
Public methodWildcard(FieldDefinition<TDocument>)
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