How Do I Convert A string to Type Uri (simple)

asp.net, vb.net

Solution

Yes.

Dim myUri As New Uri("http://www.contoso.com/")

Just replace the string with your variable and you should be good to go.

Problem

What is the quickest way to convert a string value of a URL to type URI in VB.NET?

Original source