AddIndexAsync Method
AddIndexAsync(IndexOptions)
Adds an index to this dictionary for the specified entries so that queries can run faster.
Declaration
Task AddIndexAsync(IndexOptions indexOptions)
Parameters
IndexOptions | indexOptions |
Returns
Task | A task that will complete when the index added. |
AddIndexAsync(IndexType, String[])
Convenient method to add an index to this dictionary with the given type and attributes. Attributes are indexed in ascending order.
Declaration
Task AddIndexAsync(IndexType type, params string[] attributes)
Parameters
IndexType | type | Index type. |
String[] | attributes | Attributes to be indexed. |
Returns
Task | A task that will complete when the index added. |