C# Program to Demonstrate the Use of Absoluteuri Property of URI Class

You are currently viewing C# Program to Demonstrate the Use of Absoluteuri Property of URI Class

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 . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply