Table of Contents

Class MongoIndexOptions

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.Models
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

Cosmos DB MongoDB collection index options

public class MongoIndexOptions
Inheritance
MongoIndexOptions
Inherited Members

Constructors

MongoIndexOptions()

Initializes a new instance of the MongoIndexOptions class.

public MongoIndexOptions()

MongoIndexOptions(int?, bool?)

Initializes a new instance of the MongoIndexOptions class.

public MongoIndexOptions(int? expireAfterSeconds = null, bool? unique = null)

Parameters

expireAfterSeconds int?

Expire after seconds

unique bool?

Is unique or not

Properties

ExpireAfterSeconds

Gets or sets expire after seconds

public int? ExpireAfterSeconds { get; set; }

Property Value

int?

Unique

Gets or sets is unique or not

public bool? Unique { get; set; }

Property Value

bool?