Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
- Returns
- The authority component of the URI represented by this instance.
- Exceptions
-
- Examples
- The following example writes the host name (www.contoso.com) and port number (8080) of the server to the console.
auto base_uri =
uri(
"http://www.contoso.com:8080/");
auto my_uri =
uri(base_uri,
"shownew.htm?date=today");
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
uri()=default
Initializes a new instance of the xtd::uri class.