Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP).
using System;
publicclass MainClass{
publicstaticvoid 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);
}
}