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

◆ fragment()

xtd::ustring xtd::uri::fragment ( ) const

Gets the escaped URI fragment.

Returns
string A string that contains any URI fragment information.
Exceptions
xtd::invalid_operation_exceptionThis instance represents a relative URI, and this property is valid only for absolute URIs.
Remarks
The fragment property gets any text following a fragment marker (#) in the URI, including the fragment marker itself. Given the URI http://www.contoso.com/index.htm#main, the fragment property would return #main.
The fragment property is not considered in any equals comparison.