C# question - how do I convert a PageURI & Href to

2019-07-19 16:06发布

问题:

How do I convert a PageURI & Href to an absolute URL/URI in C#?

i.e. I am scanning a web page at a given PageURI and in the HTML have link/node with a HREF, and want to translate this HREF into a valid absolute URI.

Background - note the trouble I was having here

回答1:

new URI(uri, string) does it



标签: c# .net url uri href