Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
using System;
publicclass MainClass{
publicstaticvoid Main(){
Uri baseUri = new Uri("http://www.yourDomain.com:8080/");
Uri myUri = new Uri(baseUri,"shownew.htm?date=today");
Console.WriteLine(myUri.Authority);
}
}