Operations: Server: How to Get the Names of Databases on a Server

To download available database names from a server, use the GetDatabaseNames operation.


public GetDatabaseNamesOperation(int start, int pageSize)
pageSize int Maximum number of records that will be downloaded
start int Number of records that should be skipped.
Return Value
string[] Names of databases on a server


var operation = new GetDatabaseNamesOperation(0, 25);
string[] databaseNames = store.Maintenance.Server.Send(operation);