Returns the base url for this HostPattern for the specified scheme, which includes the hostname (with port) and optional root path. Does not end in a forward slash.

public string BaseUrl(string scheme)
Returns:
string

Parameters

scheme string

The scheme (http|https) to construct the base url for.

In this article