xtd
0.2.0
Loading...
Searching...
No Matches
◆
absolute_uri()
xtd::ustring
xtd::uri::absolute_uri
(
)
Gets the absolute URI.
Returns
The entire URI.
Exceptions
xtd::invalid_operation_exception
This instance represents a relative URI, and this property is valid only for absolute URIs.
Examples
The following example writes the complete contents of the
xtd::uri
instance to the console. In the example shown,
http://www.contoso.com/catalog/shownew.htm?date=today
is written to the console.
auto
base_uri =
uri
(
"http://www.contoso.com"
);
auto
my_uri =
uri
(base_uri,
"catalog/shownew.htm?date=today"
);
console::write_line
(my_uri.absolute_uri());
xtd::console::write_line
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
xtd::uri::uri
uri()=default
Initializes a new instance of the xtd::uri class.
Remarks
The
xtd::uri::absolute_uri
property includes the entire URI stored in the
xtd::uri
instance, including all fragments and query strings.
xtd
uri
Generated on Thu Aug 15 2024 14:28:54 for xtd by
Gammasoft
. All rights reserved.