Method | Description | |
---|---|---|
Ascending ( ) : |
Sets one or more key names to index in ascending order.
|
|
Descending ( ) : |
Sets one or more key names to index in descending order.
|
|
GeoSpatial ( string name ) : |
Sets the key name to create a geospatial index on.
|
|
GeoSpatialHaystack ( string name ) : |
Sets the key name to create a geospatial haystack index on.
|
|
GeoSpatialHaystack ( string name, string additionalName ) : |
Sets the key name and additional field name to create a geospatial haystack index on.
|
|
IndexKeysBuilder ( ) : System |
Initializes a new instance of the IndexKeysBuilder class.
|
|
ToBsonDocument ( ) : BsonDocument |
Returns the result of the builder as a BsonDocument.
|
Method | Description | |
---|---|---|
Serialize ( BsonWriter bsonWriter, |
Serializes the result of the builder to a BsonWriter.
|
public GeoSpatial ( string name ) : |
||
name | string | The key name. |
return |
public GeoSpatialHaystack ( string name ) : |
||
name | string | The key name. |
return |
public GeoSpatialHaystack ( string name, string additionalName ) : |
||
name | string | The key name. |
additionalName | string | The name of an additional field to index. |
return |
protected Serialize ( BsonWriter bsonWriter, |
||
bsonWriter | BsonWriter | The writer. |
nominalType | The nominal type. | |
options | IBsonSerializationOptions | The serialization options. |
return | void |