C# Uri AbsolutePath
Description
Uri AbsolutePath
gets the absolute path of the URI.
Syntax
Uri.AbsolutePath
has the following syntax.
public string AbsolutePath { get; }
Example
//from w w w . jav a 2 s . c o m
using System;
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.AbsolutePath);
}
}
The code above generates the following result.