Method SetHint
SetHint(BsonDocument)
Sets the index hint for the query.
public virtual MongoCursor SetHint(BsonDocument hint)
Parameters
hint
BsonDocumentThe index hint.
Returns
- MongoCursor
The cursor (so you can chain method calls to it).
SetHint(string)
Sets the index hint for the query.
public virtual MongoCursor SetHint(string indexName)
Parameters
indexName
stringThe name of the index.
Returns
- MongoCursor
The cursor (so you can chain method calls to it).