Get Index Names Operation
-
Use
GetIndexNamesOperation
to retrieve multiple index names from the database. -
In this page:
Get index names example
// Define the get index names operation
// Pass number of indexes to skip & number of indexes to retrieve
var getIndexNamesOp = new GetIndexNamesOperation(0, 10);
// Execute the operation by passing it to Maintenance.Send
string[] indexNames = store.Maintenance.Send(getIndexNamesOp);
// indexNames will contain the first 10 indexes, alphabetically ordered
// Define the get index names operation
// Pass number of indexes to skip & number of indexes to retrieve
var getIndexNamesOp = new GetIndexNamesOperation(0, 10);
// Execute the operation by passing it to Maintenance.SendAsync
string[] indexNames = await store.Maintenance.SendAsync(getIndexNamesOp);
// indexNames will contain the first 10 indexes, alphabetically ordered
Syntax
public GetIndexNamesOperation(int start, int pageSize)
Parameters | Type | Description |
---|---|---|
start | int |
Number of index names to skip |
pageSize | int |
Number of index names to retrieve |
Return Value ofstore.Maintenance.Send(getIndexNamesOp) |
Description |
---|---|
string[] |
A list of index names. Alphabetically ordered. |