问题
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
来源:https://stackoverflow.com/questions/2144150/c-sharp-question-how-do-i-convert-a-pageuri-href-to-an-absolute-url-uri