Initializes a new instance of the UriBuilder class with the specified scheme, host, port number, path and query string or fragment identifier. : UriBuilder « Network « C# / C Sharp






Initializes a new instance of the UriBuilder class with the specified scheme, host, port number, path and query string or fragment identifier.

 
using System;

public class MainClass{
   public static void Main(){

        UriBuilder myUri = new UriBuilder("http","www.google.com",8080,"index.htm","#top");
    
   }
}

   
  








Related examples in the same category

1.Initializes a new instance of the UriBuilder class with the specified scheme and host.
2.Initializes a new instance of the UriBuilder class with the specified scheme, host, and port.
3.Initializes a new instance of the UriBuilder class with the specified scheme, host, port number, and path.
4.Gets or sets the fragment portion of the URI.
5.Gets or sets any query information included in the URI.