Class CreateIndexModel

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Model for creating an index.

public sealed class CreateIndexModel<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance

object

CreateIndexModel

Inherited Members

object.Equals(object)

object.Equals(object, object)

object.GetHashCode()

object.GetType()

object.ReferenceEquals(object, object)

object.ToString()

Constructors

CreateIndexModel(IndexKeysDefinition, CreateIndexOptions)

Initializes a new instance of the CreateIndexModel class.

Properties

Keys

Gets the keys.

Options

Gets the options.