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

◆ is_loopback()

bool xtd::uri::is_loopback ( ) const

Gets whether the specified xtd::uri references the local host.

Returns
bool A bool value that is true if this xtd::uri references the local host; otherwise, false.
Exceptions
xtd::invalid_operation_exceptionThis instance represents a relative URI, and this property is valid only for absolute URIs.
Remarks
is_loopback returns true if the URI specified when this instance was created was 127.0.0.1, loopback, or localhost, or if the URI did not specify host information (for example, file:///c:Dir/file.txt). All other URIs return false.