Skip to main content

Commands: How to get the primary database Url?

Url is a helper method that returns the primary database url.

Syntax

string Url { get; }
Return ValueDescription
stringGets the primary database Url

Example I

// http://localhost:8080/
string url = store.DatabaseCommands.ForSystemDatabase().Url;