Constructor CreateIndexModel

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

CreateIndexModel(IndexKeysDefinition, CreateIndexOptions)

Initializes a new instance of the CreateIndexModel class.

public CreateIndexModel(IndexKeysDefinition<TDocument> keys, CreateIndexOptions options = null)

Parameters

keys IndexKeysDefinition

The keys.

options CreateIndexOptions

The options.