URI Class Property Example

When I Googled this I didn’t find anything, so here is a simple table of the System.Uri class property values for a given input string..

Input String http://example.org:8080/somePath/someFile.aspx?a=1&b=2
AbsolutePath: /somePath/someFile.aspx
AbsoluteUri: http://example.org:8080/somePath/someFile.aspx?a=1&b=2
Authority: example.org:8080
Host: example.org
HostNameType: 2
IsDefaultPort: False
IsFile: False
IsLoopback: False
IsUnc: False
LocalPath: /somePath/someFile.aspx
PathAndQuery: /somePath/someFile.aspx?a=1&b=2
Port: 8080
Query: ?a=1&b=2
Scheme: http
OriginalString: http://example.org:8080/somePath/someFile.aspx?a=1&b=2
DnsSafeHost: example.org
IsAbsoluteUri: True
Segments: ( a System.String[])
[0]: /
[1]: somePath/
[2]: someFile.aspx
UserEscaped: False

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s