C# Uri AbsoluteUri
Description
Uri AbsoluteUri
gets the absolute URI.
Syntax
Uri.AbsoluteUri
has the following syntax.
public string AbsoluteUri { get; }
Example
Gets the absolute URI.
using System;//from w w w . j a va 2 s .c om
public class MainClass{
public static void Main(String[] argv){
Uri baseUri = new Uri("http://www.java2s.com/");
Uri myUri = new Uri(baseUri, "catalog/show.htm?date=today");
System.Console.WriteLine(myUri.AbsoluteUri);
}
}
The code above generates the following result.