C# program to demonstrate the use of AbsoluteUri property of Uri class
using System;
class UriExample
{
//Entry point of Program
static public void Main()
{
Uri domainUri;
Uri newUri;
domainUri = new Uri("http://www.includehelp.com/");
newUri = new Uri(domainUri, "Article/CPrograms.html");
System.Console.WriteLine("Absolute Uri: " + newUri.AbsoluteUri);
}
}
Absolute Uri: http://www.includehelp.com/Article/CPrograms.html
Press any key to continue . . .
Table of Contents