System.UriBuilder
Object –> UriBuilder
Construct and modify URIs for the Uri class.
Construction
UriBuilder()— Returns a new UriBuilder instance.UriBuilder(string)— Returns a new UriBuilder instance from string.UriBuilder(Uri)— Returns a new UriBuilder instance from Uri.
properties
Assuming a URI https://user:password@www.contoso.com:80/Home/Index.htm?q1=v1&q2=v2#FragmentName:
Fragment—#FragmentNameHost— www.contoso.comPassword— passwordPath— /Home/Index.htmPort— 80Query— ?q1=v1&q2=v2Scheme— httpsUri— https://user:password@www.contoso.com:80/Home/Index.htm?q1=v1&q2=v2#FragmentNameUserName— user