How to build a Url?

后端 未结 3 1743
情话喂你
情话喂你 2020-12-07 23:46

Are there any helper classes available in .NET to allow me to build a Url?

For example, if a user enters a string:

stackoverflow.com
<
3条回答
  •  感动是毒
    2020-12-08 00:38

    To be valid a URI needs to have the scheme component. "server:8088" is not a valid URI. "http://server:8088" is. See https://tools.ietf.org/html/rfc3986

提交回复
热议问题