Table of Contents

Method GetIndexName

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

GetIndexName(BsonDocument)

Gets the name of the index derived from the keys specification.

public static string GetIndexName(BsonDocument keys)

Parameters

keys BsonDocument

The keys specification.

Returns

string

The name of the index.

GetIndexName(string[])

Gets the name of the index derived from the key names.

public static string GetIndexName(string[] keyNames)

Parameters

keyNames string[]

The key names.

Returns

string

The name of the index.