Table of Contents

Method Combine

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Combine(params IndexKeysDefinition<TDocument>[])

Creates a combined index keys definition.

public IndexKeysDefinition<TDocument> Combine(params IndexKeysDefinition<TDocument>[] keys)

Parameters

keys IndexKeysDefinition<TDocument>[]

The keys.

Returns

IndexKeysDefinition<TDocument>

A combined index keys definition.

Combine(IEnumerable<IndexKeysDefinition<TDocument>>)

Creates a combined index keys definition.

public IndexKeysDefinition<TDocument> Combine(IEnumerable<IndexKeysDefinition<TDocument>> keys)

Parameters

keys IEnumerable<IndexKeysDefinition<TDocument>>

The keys.

Returns

IndexKeysDefinition<TDocument>

A combined index keys definition.