Output from the Uri class
February 27, 2009
This shows the output from all the properties of the URI class for the current request. The Uri has been hardcoded as:
// Add a querystring a different port just to show it working in the Uri class. Uri uri = new Uri("http://www.yetanotherchris.me:8900/code-snippets/csharp/uri-class-output.aspx?myid=30"); AbsolutePath /code-snippets/csharp/uri-class-output.aspx AbsoluteUri http://www.yetanotherchris.me:8900/code-snippets/csharp/uri-class-output.aspx?myid=30 Authority www.yetanotherchris.me:8900 DnsSafeHost www.yetanotherchris.me Fragment Host www.yetanotherchris.me HostNameType Dns IsAbsoluteUri True IsDefaultPort False IsFile False IsLoopback False IsUnc False LocalPath /code-snippets/csharp/uri-class-output.aspx OriginalString http://www.yetanotherchris.me:8900/code-snippets/csharp/uri-class-output.aspx?myid=30 PathAndQuery /code-snippets/csharp/uri-class-output.aspx?myid=30 Port 8900 Query ?myid=30 Scheme http Segments /,code-snippets/,csharp/,uri-class-output.aspx UserEscaped False UserInfo
I'm Chris Small, a software engineer working in London. This is my tech blog. Find out more about me via Github, Stackoverflow, Resume