Network C#

using System;
public class MainClass{
   public static void Main(){
        Uri address1 = new Uri("http://www.yourDomain.com/index.htm#search");
        Console.WriteLine("address 1 {0} a valid scheme name",
              Uri.CheckSchemeName(address1.Scheme) ? " has" : " does not have");
        
        if (address1.Scheme == Uri.UriSchemeHttp)
            Console.WriteLine("Uri is HTTP type");
        
        Console.WriteLine(address1.HostNameType);
        
   }
}