Interface IWithIndex
- Namespace
- Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Update
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
The stage of the mongo collection update allowing to set indexes.
public interface IWithIndex
Methods
WithIndex(MongoIndex)
Specifies a mongo index.
IUpdate WithIndex(MongoIndex index)
Parameters
index
MongoIndexThe specific mongo index.
Returns
- IUpdate
The next stage of the update.
WithIndex(MongoIndexKeys, MongoIndexOptions)
Specifies a mongo index.
IUpdate WithIndex(MongoIndexKeys key, MongoIndexOptions option)
Parameters
key
MongoIndexKeysThe key of the index.
option
MongoIndexOptionsThe option of the index.
Returns
- IUpdate
The next stage of the update.
WithIndexesAppend(IList<MongoIndex>)
Appends all mongo indexes to current indexes.
IUpdate WithIndexesAppend(IList<MongoIndex> indexes)
Parameters
indexes
IList<MongoIndex>The indexes needs appending.
Returns
- IUpdate
The next stage of the update.
WithIndexesReplace(IList<MongoIndex>)
Replaces the mongo indexes.
IUpdate WithIndexesReplace(IList<MongoIndex> indexes)
Parameters
indexes
IList<MongoIndex>The mongo indexes.
Returns
- IUpdate
The next stage of the update.
WithoutIndexes()
Removes all mongo indexes.
IUpdate WithoutIndexes()
Returns
- IUpdate
The next stage of the update.