VB.NET - Convert a Relative Uri to an Absolute Uri



Converts a relative Uri to an absolute Uri

'Namespace: Microsoft.VisualBasic
'Namespace: System

Dim baseUri As New Uri("http://himabinduvejella.blogspot.com")
Dim relativeUri As New Uri("http://syntaxhelp.com")

' Compose absolute Uri using the base and the relative Uri.
Dim absoluteUri As New Uri(baseUri, relativeUri)

Dim absolute As String = absoluteUri.AbsolutePath()

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.