Table of Contents

Interface IWithIndex<ParentT>

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

The stage of the mongo collection definition allowing to set indexes.

public interface IWithIndex<ParentT>

Type Parameters

ParentT

The stage of the parent definition to return to after attaching this definition.

Methods

WithIndex(MongoIndex)

Specifies a mongo index.

IWithAttach<ParentT> WithIndex(MongoIndex index)

Parameters

index MongoIndex

The specific mongo index.

Returns

IWithAttach<ParentT>

The next stage of the definition.

WithIndex(MongoIndexKeys, MongoIndexOptions)

Specifies a mongo index.

IWithAttach<ParentT> WithIndex(MongoIndexKeys key, MongoIndexOptions option)

Parameters

key MongoIndexKeys

The key of the index.

option MongoIndexOptions

The option of the index.

Returns

IWithAttach<ParentT>

The next stage of the definition.

WithIndexes(IList<MongoIndex>)

Appends all mongo indexes to current indexes.

IWithAttach<ParentT> WithIndexes(IList<MongoIndex> indexes)

Parameters

indexes IList<MongoIndex>

The indexes needs appending.

Returns

IWithAttach<ParentT>

The next stage of the definition.