Table of Contents

Class IndexNameHelper

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

Represents helper methods for index names.

public static class IndexNameHelper
Inheritance
IndexNameHelper
Inherited Members

Methods

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.