xtd::ustring xtd::uri::get_left_part | ( | xtd::uri_partial | part | ) | const |
Gets the specified portion of a xtd::uri instance.
part | = One of the xtd::uri_partial values that specifies the end of the URI portion to return. |
xtd::invalid_operation_exception | This instance represents a relative URI, and this property is valid only for absolute URIs. |
ArgumentException | The specified part is not valid. |
URI | Scheme | Autority | Path | Query |
---|---|---|---|---|
http://www.contoso.com/index.htm?date=today | http:// | http://www.contoso.com | http://www.contoso.com/index.htm | http://www.contoso.com/index.htm?date=today |
http://www.contoso.com/index.htm#main | http:// | http://www.contoso.com | http://www.contoso.com/index.htm | http://www.contoso.com/index.htm |
user@.nosp@m.cont.nosp@m.oso.c.nosp@m.om?subject=uri | mailto: | user@.nosp@m.cont.nosp@m.oso.c.nosp@m.om | user@.nosp@m.cont.nosp@m.oso.c.nosp@m.om?subject=uri | <None> |
nntp://news.contoso.com/123456@contoso.com | nntp:// | nntp://news.contoso.com | nntp://news.contoso.com/123456@contoso.com | nntp://news.contoso.com/123456@contoso.com |
news:123456@contoso.com | news: | news:123456@contoso.com | news:123456@contoso.com | <None> |
file://server/filename.ext | file:// | file://server | file://server/filename.ext | file://server/filename.ext |