Uri.Fragment Property gets the escaped URI fragment.
Imports System.IO
Imports System.Net
Imports System.Text
public class MainClass
Shared Sub Main()
Dim uriAddress As New Uri("http://www.yourDomain.com/index.htm#search")
Console.WriteLine(uriAddress.Fragment)
Console.WriteLine(uriAddress.IsDefaultPort)
Console.WriteLine("The path of this Uri is {0}", uriAddress.GetLeftPart(UriPartial.Path))
Console.WriteLine("Hash code {0}", uriAddress.GetHashCode())
End Sub
End Class
Related examples in the same category