UriBuilder.Fragment Property gets or sets the fragment portion of the URI. : UriBuilder « Network Remote « VB.Net






UriBuilder.Fragment Property gets or sets the fragment portion of the URI.

 
Imports System.IO
Imports System.Net
Imports System.Text

public class MainClass
   Shared Sub Main()
        Dim uBuild As New UriBuilder("http://www.yourDomain.com/")
        uBuild.Path = "index.htm"
        uBuild.Fragment = "main"
        
        Dim myUri As Uri = uBuild.Uri

   End Sub
End Class

   
  








Related examples in the same category

1.Create UriBuilder class with the specified scheme and host.
2.Create UriBuilder class with the specified scheme, host, and port.
3.Create UriBuilder class with the specified scheme, host, port number, and path.
4.Create UriBuilder class with the scheme, host, port number, path and query string or fragment identifier.