Top

Tags


Roadkill .NET Wiki

Google ads

Recommended reading


Search

Friday
Feb272009

Output from the Uri class

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

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
« C# Design Patterns: the Observer pattern | Main | C# Design Patterns: the Mediator pattern »