Skip to main content

Documents Constructors

An object defining constructors for the Documents class.

Documents(dictionary)

Initializes a new instance of the Documents class with a specified dictionary of document options.

Parameters:

dictionary (required): Dictionary<string, DocumentOptions>
The dictionary containing document options indexed by string keys.


BaseIndexer(dictionaryName, dictionary)

Initializes a new instance of the BaseIndexer<TKey, TValue> class with a specified dictionary name and dictionary.

Parameters:

dictionaryName (required): string
The name of the dictionary.

dictionary (required): Dictionary<TKey, TValue>
The dictionary to be wrapped by the indexer.