xtd 0.2.0
Loading...
Searching...
No Matches

◆ host()

xtd::ustring xtd::uri::host ( ) const

Gets the host component of this instance.

Returns
string A string that contains the host name. This is usually the DNS host name or IP address of the server.
Exceptions
xtd::invalid_operation_exceptionThis instance represents a relative URI, and this property is valid only for absolute URIs.
Remarks
Unlike the authority property, this property value does not include the port number.