Determines the difference between two Uri instances.
using System;
publicclass MainClass{
publicstaticvoid Main(){
// Create a base Uri.
Uri address1 = new Uri("http://www.yourDomain.com/");
// Create a new Uri from a string.
Uri address2 = new Uri("http://www.yourDomain.com/index.htm?date=today");
// Determine the relative Uri.
Console.WriteLine("The difference is {0}", address1.MakeRelativeUri(address2));
}
}