You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: How to get database configuration?

GetDatabaseConfiguration from admin database commands can be used to retrieve database configuration.

Syntax

RavenJObject GetDatabaseConfiguration();

Return Value
RavenJObject Database configuration in JSON format

Example

RavenJObject configuration = store
	.DatabaseCommands
	.Admin
	.GetDatabaseConfiguration();