Method SetHint
SetHint(BsonDocument)
Sets the index hint for the query.
public virtual MongoCursor SetHint(BsonDocument hint)
Parameters
hintBsonDocumentThe 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
indexNamestringThe name of the index.
Returns
- MongoCursor
The cursor (so you can chain method calls to it).